Browse Source

Properly handle unboosting statuses from detailed view

Fixes #1106
closed-social-glitch-2
Thibaut Girka 5 years ago
committed by ThibG
parent
commit
32bdff09c1
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      app/javascript/flavours/glitch/features/status/index.js

+ 7
- 1
app/javascript/flavours/glitch/features/status/index.js 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) => {

Loading…
Cancel
Save