diff --git a/app/models/attachment.js b/app/models/attachment.js index 86892cad..1eaa0201 100644 --- a/app/models/attachment.js +++ b/app/models/attachment.js @@ -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); + } } } diff --git a/package.json b/package.json index 050ddf32..fa9c30e0 100644 --- a/package.json +++ b/package.json @@ -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",