Merge branch 'users-statuses-pinia' into shigusegubu-themes3
This commit is contained in:
commit
2dad57e806
1 changed files with 4 additions and 1 deletions
|
|
@ -70,7 +70,10 @@ export const prepareNotificationObject = (notification, i18n) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shows first attached non-nsfw image, if any. Should add configuration for this somehow...
|
// 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
|
notifObj.image = status.attachments[0].url
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue