Add "locked" flag to accounts, prevent blocked users from following, force-unfollow blocked users
This commit is contained in:
parent
f91b6fa9e1
commit
2d2154ba75
9 changed files with 27 additions and 3 deletions
|
@ -8,6 +8,7 @@ class FollowService < BaseService
|
|||
target_account = follow_remote_account_service.call(uri)
|
||||
|
||||
raise ActiveRecord::RecordNotFound if target_account.nil? || target_account.id == source_account.id || target_account.suspended?
|
||||
raise Mastodon::NotPermitted if target_account.blocking?(source_account)
|
||||
|
||||
follow = source_account.follow!(target_account)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue