diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-06 14:13:15 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2019-02-06 14:37:57 +0100 |
commit | 3ce34ce7a2795b8fbea618a8c869d9447f5a60b5 (patch) | |
tree | 94e134e811b1a2fe35a6dbc2db6e18ec75b12c7b /app | |
parent | c9d261753aa4f3ec3439925fed03ea098bb96f72 (diff) |
Fix unfolding CWs on public hashtag page
Fixes #909
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/features/status/components/detailed_status.js | 2 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js index 02f02efea..a114e2158 100644 --- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js +++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js @@ -26,7 +26,7 @@ export default class DetailedStatus extends ImmutablePureComponent { settings: ImmutablePropTypes.map.isRequired, onOpenMedia: PropTypes.func.isRequired, onOpenVideo: PropTypes.func.isRequired, - onToggleHidden: PropTypes.func.isRequired, + onToggleHidden: PropTypes.func, expanded: PropTypes.bool, measureHeight: PropTypes.bool, onHeightChange: PropTypes.func, diff --git a/app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js b/app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js index e41b1dc88..6d3909ea7 100644 --- a/app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js +++ b/app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js @@ -160,14 +160,6 @@ const mapDispatchToProps = (dispatch, { intl }) => ({ } }, - onToggleHidden (status) { - if (status.get('hidden')) { - dispatch(revealStatus(status.get('id'))); - } else { - dispatch(hideStatus(status.get('id'))); - } - }, - }); export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(DetailedStatus)); |