logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: cfd2b06821a12f6b4aae427dbb9e6707d1cff9dc
parent: d613dda91d1f1595f73a967eb01c41b07cddacbe
Author: codl <codl@codl.fr>
Date:   Sun, 21 Jan 2018 13:23:17 +0100

fix filter search index being too strict when looking for line breaks (#6318)


Diffstat:

Mapp/javascript/mastodon/reducers/statuses.js2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/javascript/mastodon/reducers/statuses.js b/app/javascript/mastodon/reducers/statuses.js @@ -54,7 +54,7 @@ const normalizeStatus = (state, status) => { normalStatus.reblog = status.reblog.id; } - const searchContent = [status.spoiler_text, status.content].join('\n\n').replace(/<br \/>/g, '\n').replace(/<\/p><p>/g, '\n\n'); + const searchContent = [status.spoiler_text, status.content].join('\n\n').replace(/<br\s*\/?>/g, '\n').replace(/<\/p><p>/g, '\n\n'); const emojiMap = normalStatus.emojis.reduce((obj, emoji) => { obj[`:${emoji.shortcode}:`] = emoji;