mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix blocking/unblocking users from status dropdown menu (#12535)
Fixes #12511
This commit is contained in:
parent
c7da6db28d
commit
27d5d02925
@ -173,9 +173,9 @@ class StatusActionBar extends ImmutablePureComponent {
|
|||||||
const account = status.get('account');
|
const account = status.get('account');
|
||||||
|
|
||||||
if (relationship && relationship.get('blocking')) {
|
if (relationship && relationship.get('blocking')) {
|
||||||
onBlock(status);
|
|
||||||
} else {
|
|
||||||
onUnblock(account);
|
onUnblock(account);
|
||||||
|
} else {
|
||||||
|
onBlock(status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,9 +120,9 @@ class ActionBar extends React.PureComponent {
|
|||||||
const account = status.get('account');
|
const account = status.get('account');
|
||||||
|
|
||||||
if (relationship && relationship.get('blocking')) {
|
if (relationship && relationship.get('blocking')) {
|
||||||
onBlock(status);
|
|
||||||
} else {
|
|
||||||
onUnblock(account);
|
onUnblock(account);
|
||||||
|
} else {
|
||||||
|
onBlock(status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user