Respect subject lines in notifications #23
1 changed files with 5 additions and 1 deletions
|
@ -109,8 +109,12 @@ export const prepareNotificationObject = (notification, i18n) => {
|
||||||
} else if (i18nString) {
|
} else if (i18nString) {
|
||||||
notifObj.body = i18n.t('notifications.' + i18nString)
|
notifObj.body = i18n.t('notifications.' + i18nString)
|
||||||
} else if (isStatusNotification(notification.type)) {
|
} else if (isStatusNotification(notification.type)) {
|
||||||
|
if (notification.status.summary) {
|
||||||
|
notifObj.body = notification.status.summary
|
||||||
|
} else {
|
||||||
notifObj.body = notification.status.text
|
notifObj.body = notification.status.text
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 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 && status.attachments && status.attachments.length > 0 && !status.nsfw &&
|
if (status && status.attachments && status.attachments.length > 0 && !status.nsfw &&
|
||||||
|
|
Loading…
Reference in a new issue