From d4d3a10c25ea3b74e1c9ff7312715c33718da3b0 Mon Sep 17 00:00:00 2001 From: hoodie Date: Sat, 4 Feb 2017 17:33:46 -0500 Subject: [PATCH 1/3] untested!! spoiler hotfix for replies untested, my vagrant is bugged again, submitted at gargron's request --- .../javascripts/components/components/status_content.jsx | 7 +++++-- app/views/api/v1/statuses/_mention.rabl | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/components/components/status_content.jsx b/app/assets/javascripts/components/components/status_content.jsx index 44346fabc22..dd11d3a01c8 100644 --- a/app/assets/javascripts/components/components/status_content.jsx +++ b/app/assets/javascripts/components/components/status_content.jsx @@ -3,6 +3,7 @@ import PureRenderMixin from 'react-addons-pure-render-mixin'; import escapeTextContentForBrowser from 'react/lib/escapeTextContentForBrowser'; import emojify from '../emoji'; import { FormattedMessage } from 'react-intl'; +import Permalink from './permalink'; const spoilerStyle = { display: 'inline-block', @@ -96,16 +97,18 @@ const StatusContent = React.createClass({ const { status } = this.props; const { hidden } = this.state; + const content = { __html: emojify(status.get('content')) }; 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 toggleText = hidden ? : ; - return (