commit: ae716a12e1604a4df54acbc77ff35f591e3168e2
parent: f63a40e7c2e3211758c321cdf9196d178c2930e0
Author: Ondřej Hruška <ondra@ondrovo.com>
Date: Sat, 14 Oct 2017 14:41:12 +0200
replace newlines in desktop notif with spaces instead of removing them (#5361)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js
@@ -31,6 +31,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
const unescapeHTML = (html) => {
const wrapper = document.createElement('div');
+ html = html.replace(/<br \/>|<br>|\n/, ' ');
wrapper.innerHTML = html;
return wrapper.textContent;
};