Skip to content
Snippets Groups Projects
Commit b1a0322a authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Reject follow requests of blocked users (#10633)

parent 80bbf40f
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,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)
block = account.block!(target_account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment