about summary refs log tree commit diff
diff options
context:
space:
mode:
authorcwm <chriswmartin@protonmail.com>2018-01-09 08:52:14 -0600
committercwm <chriswmartin@protonmail.com>2018-01-09 08:52:14 -0600
commit7f4374d97dd7dce6ec9f632a3cc8527490cbe2c6 (patch)
tree99f240038ebc06e06c1ca67e159b36cb5a026aa5
parent8a0e4bb9a4007efb2c2966fa1ffa9027a1a6da5d (diff)
Fix newlines-to-spaces functionality (tootsuite pr #6158)
-rw-r--r--app/javascript/flavours/glitch/actions/notifications.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/notifications.js b/app/javascript/flavours/glitch/actions/notifications.js
index 9b9ebf86d..cf27eff90 100644
--- a/app/javascript/flavours/glitch/actions/notifications.js
+++ b/app/javascript/flavours/glitch/actions/notifications.js
@@ -42,7 +42,7 @@ const fetchRelatedRelationships = (dispatch, notifications) => {
 
 const unescapeHTML = (html) => {
   const wrapper = document.createElement('div');
-  html = html.replace(/<br \/>|<br>|\n/, ' ');
+  html = html.replace(/<br \/>|<br>|\n/g, ' ');
   wrapper.innerHTML = html;
   return wrapper.textContent;
 };