about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-10-12 21:28:17 +0200
committerOndřej Hruška <ondra@ondrovo.com>2017-10-12 21:28:17 +0200
commitdf626fdd43330e81d5df2f7f43b896757c51ad11 (patch)
tree769715f39ce3e9cd1edaab71fcaac9da6e23a201 /app/javascript
parent6a2b1ba91eae312917da3d4882a5c0a540746b9c (diff)
Fix the notification bug with newlines
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/actions/notifications.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/notifications.js b/app/javascript/mastodon/actions/notifications.js
index ebdf21322..4a4462e1d 100644
--- a/app/javascript/mastodon/actions/notifications.js
+++ b/app/javascript/mastodon/actions/notifications.js
@@ -42,6 +42,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;
 };