Properly handle unboosting statuses from detailed view

Fixes #1106
pull/1110/head
Thibaut Girka 2019-06-12 09:46:39 +02:00 committed by ThibG
parent cde30407c6
commit 32bdff09c1
1 changed files with 7 additions and 1 deletions

View File

@ -231,7 +231,13 @@ export default class Status extends ImmutablePureComponent {
}
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) => {