From: Eugen Rochko Date: Sun, 5 Feb 2017 00:19:27 +0000 (+0100) Subject: Display mentions prepended to the content warning X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=af007f2def802560f548d85f81f0f4e5039ae737;p=mastodon.git Display mentions prepended to the content warning --- diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index dd11d3a01..1531e071c 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 (