Compare commits

..

No commits in common. "2dad57e8067ffd8f11b5412d6dec897d3f5d1e78" and "d4137c82ca850c4c42f2f5d3c015a4b7c057f5d4" have entirely different histories.

View file

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