Adding domain blocks
This commit is contained in:
parent
52d7f862d3
commit
22a8801dbc
13 changed files with 92 additions and 10 deletions
|
@ -8,6 +8,7 @@ class FollowRemoteAccountService < BaseService
|
|||
username, domain = uri.split('@')
|
||||
|
||||
return Account.find_local(username) if TagManager.instance.local_domain?(domain)
|
||||
return nil if DomainBlock.blocked?(domain)
|
||||
|
||||
account = Account.find_remote(username, domain)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue