From 6ed26ce65d650e813f0c5e5b570e36f944b120ca Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 3 Apr 2019 10:58:39 -0400 Subject: [PATCH] #436 - notification html to text content --- src/modules/statuses.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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...