forked from AkkomaGang/akkoma-fe
#436 - revert stripe html for notification
This commit is contained in:
parent
6ed26ce65d
commit
fe756fe30d
1 changed files with 1 additions and 5 deletions
|
@ -313,11 +313,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
|
||||||
if (i18nString) {
|
if (i18nString) {
|
||||||
notifObj.body = rootGetters.i18n.t('notifications.' + i18nString)
|
notifObj.body = rootGetters.i18n.t('notifications.' + i18nString)
|
||||||
} else {
|
} else {
|
||||||
// stripe html
|
notifObj.body = notification.status.text
|
||||||
const div = document.createElement('div')
|
|
||||||
div.innerHTML = notification.status.text
|
|
||||||
const text = div.textContent || div.innerText || ''
|
|
||||||
notifObj.body = 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...
|
||||||
|
|
Loading…
Reference in a new issue