Skip to content

Commit 6c3b643

Browse files
ClearlyClairehiyuki2578
authored andcommitted
Reject follow requests of blocked users (mastodon#10633)
1 parent a80ce0c commit 6c3b643

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/services/block_service.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def call(account, target_account)
66

77
UnfollowService.new.call(account, target_account) if account.following?(target_account)
88
UnfollowService.new.call(target_account, account) if target_account.following?(account)
9+
RejectFollowService.new.call(account, target_account) if target_account.requested?(account)
910

1011
block = account.block!(target_account)
1112

0 commit comments

Comments
 (0)