Compare commits

...

2 commits

Author SHA1 Message Date
Henry Jameson
2dad57e806 Merge branch 'users-statuses-pinia' into shigusegubu-themes3 2026-08-21 16:26:08 +03:00
Henry Jameson
89dc6d2075 lint 2026-08-21 16:26:01 +03:00

View file

@ -70,7 +70,10 @@ 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
}