Respect subject lines in notifications
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Sol Fisher Romanoff 2022-06-27 14:27:18 +03:00
parent 06343addef
commit ca3e1d165d
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -109,8 +109,12 @@ export const prepareNotificationObject = (notification, i18n) => {
} else if (i18nString) {
notifObj.body = i18n.t('notifications.' + i18nString)
} else if (isStatusNotification(notification.type)) {
if (notification.status.summary) {
notifObj.body = notification.status.summary
} else {
notifObj.body = notification.status.text
}
}
// Shows first attached non-nsfw image, if any. Should add configuration for this somehow...
if (status && status.attachments && status.attachments.length > 0 && !status.nsfw &&