Respect subject lines in notifications #23

Merged
floatingghost merged 2 commits from nbsp/pleroma-fe:notif-subject into develop 2022-06-27 16:15:24 +00:00
Showing only changes of commit ca3e1d165d - Show all commits

View file

@ -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...