mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 20:15:10 +01:00
Fix BlockService trying to reject incorrect follow request (#11288)
Fixes #11148
This commit is contained in:
parent
4e8dcc5dbb
commit
4e1260feaa
@ -8,7 +8,7 @@ class BlockService < BaseService
|
||||
|
||||
UnfollowService.new.call(account, target_account) if account.following?(target_account)
|
||||
UnfollowService.new.call(target_account, account) if target_account.following?(account)
|
||||
RejectFollowService.new.call(account, target_account) if target_account.requested?(account)
|
||||
RejectFollowService.new.call(target_account, account) if target_account.requested?(account)
|
||||
|
||||
block = account.block!(target_account)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user