From b8307576ac764fcb4d7f125ecf8e10a8ae0ed89c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 5 Feb 2017 01:19:27 +0100 Subject: [PATCH] Display mentions prepended to the content warning --- .../javascripts/components/components/status_content.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index dd11d3a01c..1531e071ca 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -102,8 +102,14 @@ const StatusContent = React.createClass({ const spoilerContent = { __html: emojify(escapeTextContentForBrowser(status.get('spoiler_text', ''))) }; if (status.get('spoiler_text').length > 0) { - const mentionLinks = status.get('mentions').map(item => @{item.get('username')}}) }; + const mentionLinks = status.get('mentions').map(item => ( + + @{item.get('username')} + + )).reduce((aggregate, item) => [...aggregate, item, ' '], []) + const toggleText = hidden ? : ; + return (