From 0a2427f79b90f82100b3a4ebe95ceb488cbb5a1d Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 14 Feb 2017 23:59:46 +0100 Subject: Fix #634 - Only include innermost-level statuses in report UI Fix #635 - Include the initially-reported status in report UI even if it's not among the user's most recent statuses --- .../components/features/report/components/status_check_box.jsx | 4 ++++ app/assets/javascripts/components/features/report/index.jsx | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/components/features/report') diff --git a/app/assets/javascripts/components/features/report/components/status_check_box.jsx b/app/assets/javascripts/components/features/report/components/status_check_box.jsx index df4a31457..6d976582b 100644 --- a/app/assets/javascripts/components/features/report/components/status_check_box.jsx +++ b/app/assets/javascripts/components/features/report/components/status_check_box.jsx @@ -18,6 +18,10 @@ const StatusCheckBox = React.createClass({ const { status, checked, onToggle, disabled } = this.props; const content = { __html: emojify(status.get('content')) }; + if (status.get('reblog')) { + return null; + } + return (
{ isSubmitting: state.getIn(['reports', 'new', 'isSubmitting']), account: getAccount(state, accountId), comment: state.getIn(['reports', 'new', 'comment']), - statusIds: state.getIn(['timelines', 'accounts_timelines', accountId, 'items'], Immutable.List()) + statusIds: Immutable.OrderedSet(state.getIn(['timelines', 'accounts_timelines', accountId, 'items'])).union(state.getIn(['reports', 'new', 'status_ids'])) }; }; -- cgit