Skip to content

Commit

Permalink
Log case of missed URL in image_sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Feb 15, 2025
1 parent e5a3859 commit cae7461
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/models/attachment.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ export function addModel(dbAdapter) {
result.image[variant] = {
w: entry.w,
h: entry.h,
ext: entry.url.split('.').pop(),
ext: entry.url?.split('.').pop(),
};

if (!entry.url) {
debug(`no URL for image size ${variant} of attachment ${this.id}`, this._imageSizes);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "freefeed-server",
"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.",
"homepage": "https://freefeed.net",
"version": "2.23.2",
"version": "2.23.3",
"private": true,
"scripts": {
"start": "cross-env TZ=UTC yarn babel index.js",
Expand Down

0 comments on commit cae7461

Please sign in to comment.