Skip to content

Commit cae7461

Browse files
committed
Log case of missed URL in image_sizes
1 parent e5a3859 commit cae7461

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/models/attachment.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,12 @@ export function addModel(dbAdapter) {
9595
result.image[variant] = {
9696
w: entry.w,
9797
h: entry.h,
98-
ext: entry.url.split('.').pop(),
98+
ext: entry.url?.split('.').pop(),
9999
};
100+
101+
if (!entry.url) {
102+
debug(`no URL for image size ${variant} of attachment ${this.id}`, this._imageSizes);
103+
}
100104
}
101105
}
102106

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "freefeed-server",
44
"description": "FreeFeed is an open source FriendFeed clone (yes, it is free and open!) based on Pepyatka open-source FriendFeed clone (yes, that one is also free and open). Basically, this is a social real-time feed aggregator that allows you to share cute kittens, coordinate upcoming events, discuss any other cool stuff on the Internet or setup a private Pepyatka instance in your company.",
55
"homepage": "https://freefeed.net",
6-
"version": "2.23.2",
6+
"version": "2.23.3",
77
"private": true,
88
"scripts": {
99
"start": "cross-env TZ=UTC yarn babel index.js",

0 commit comments

Comments
 (0)