This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix blocking/unblocking users from status dropdown menu (
#12535
)
Fixes
#12511
closed-social-v3
ThibG
5 years ago
committed by
Eugen Rochko
parent
c7da6db28d
commit
27d5d02925
2 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
app/javascript/mastodon/components/status_action_bar.js
+2
-2
app/javascript/mastodon/features/status/components/action_bar.js
+ 2
- 2
app/javascript/mastodon/components/status_action_bar.js
View File
@ -173,9 +173,9 @@ class StatusActionBar extends ImmutablePureComponent {
const
account
=
status
.
get
(
'account'
)
;
if
(
relationship
&&
relationship
.
get
(
'blocking'
)
)
{
onBlock
(
status
)
;
}
else
{
onUnblock
(
account
)
;
}
else
{
onBlock
(
status
)
;
}
}
+ 2
- 2
app/javascript/mastodon/features/status/components/action_bar.js
View File
@ -120,9 +120,9 @@ class ActionBar extends React.PureComponent {
const
account
=
status
.
get
(
'account'
)
;
if
(
relationship
&&
relationship
.
get
(
'blocking'
)
)
{
onBlock
(
status
)
;
}
else
{
onUnblock
(
account
)
;
}
else
{
onBlock
(
status
)
;
}
}
Write
Preview
Loading…
Cancel
Save