Properly handle unboosting statuses from detailed view

Fixes #1106
main
Thibaut Girka 6 years ago committed by ThibG
parent cde30407c6
commit 32bdff09c1

@ -231,7 +231,13 @@ export default class Status extends ImmutablePureComponent {
} }
handleModalReblog = (status) => { handleModalReblog = (status) => {
this.props.dispatch(reblog(status)); const { dispatch } = this.props;
if (status.get('reblogged')) {
dispatch(unreblog(status));
} else {
dispatch(reblog(status));
}
} }
handleReblogClick = (status, e) => { handleReblogClick = (status, e) => {

Loading…
Cancel
Save