diff options
| author | dave <starpumadev@gmail.com> | 2019-04-03 10:58:39 -0400 |
|---|---|---|
| committer | dave <starpumadev@gmail.com> | 2019-04-03 10:58:39 -0400 |
| commit | 6ed26ce65d650e813f0c5e5b570e36f944b120ca (patch) | |
| tree | e572199e2f4d4d430e2aae37a669316408ccb634 /src | |
| parent | 6fa014505c2eafb14a128cf4f1b315fc77342e4a (diff) | |
#436 - notification html to text content
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 43145311..28daae99 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -313,7 +313,11 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot if (i18nString) { notifObj.body = rootGetters.i18n.t('notifications.' + i18nString) } else { - notifObj.body = notification.status.text + // stripe html + 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... |
