fix another error

This commit is contained in:
Henry Jameson 2026-08-21 16:25:34 +03:00
commit 5467bfc84b

View file

@ -70,7 +70,7 @@ export const prepareNotificationObject = (notification, i18n) => {
}
// Shows first attached non-nsfw image, if any. Should add configuration for this somehow...
if (!status.nsfw && status?.attachments?.[0]?.mimetype.startsWith('image/')) {
if (!status?.nsfw && status?.attachments?.[0]?.mimetype.startsWith('image/')) {
notifObj.image = status.attachments[0].url
}