]> cat aescling's git repositories - mastodon.git/commitdiff
Fix unfolding CWs on public hashtag page
authorThibaut Girka <thib@sitedethib.com>
Wed, 6 Feb 2019 13:13:15 +0000 (14:13 +0100)
committerThibG <thib@sitedethib.com>
Wed, 6 Feb 2019 13:37:57 +0000 (14:37 +0100)
Fixes #909

app/javascript/flavours/glitch/features/status/components/detailed_status.js
app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js

index 02f02efea3fbf7c978fdd04739d62e9bc8392fcd..a114e2158bfd2e13a0f0219fdfba6af9cfadf7f6 100644 (file)
@@ -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,
index e41b1dc88c904309b761e46cbeb0f60c220734d0..6d3909ea7c7c9c3861e1e1b85c2276c4ad307199 100644 (file)
@@ -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));