mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
parent
cde30407c6
commit
32bdff09c1
@ -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…
Reference in New Issue
Block a user