Respect subject lines in notifications
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
This commit is contained in:
parent
06343addef
commit
ca3e1d165d
1 changed files with 5 additions and 1 deletions
|
@ -109,7 +109,11 @@ export const prepareNotificationObject = (notification, i18n) => {
|
|||
} else if (i18nString) {
|
||||
notifObj.body = i18n.t('notifications.' + i18nString)
|
||||
} else if (isStatusNotification(notification.type)) {
|
||||
notifObj.body = notification.status.text
|
||||
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...
|
||||
|
|
Loading…
Reference in a new issue