Browse Source

Fix unfolding CWs on public hashtag page

Fixes #909
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
3ce34ce7a2
2 changed files with 1 additions and 9 deletions
  1. +1
    -1
      app/javascript/flavours/glitch/features/status/components/detailed_status.js
  2. +0
    -8
      app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js

+ 1
- 1
app/javascript/flavours/glitch/features/status/components/detailed_status.js View 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,

+ 0
- 8
app/javascript/flavours/glitch/features/status/containers/detailed_status_container.js View 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));

Loading…
Cancel
Save