Federate blocks with the http://mastodon.social/schema/1.0 verb namespace
This commit is contained in:
parent
9f9e11ce07
commit
c04002b340
3 changed files with 18 additions and 1 deletions
|
@ -7,10 +7,12 @@ 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)
|
||||
|
||||
account.block!(target_account)
|
||||
block = account.block!(target_account)
|
||||
|
||||
clear_timelines(account, target_account)
|
||||
clear_notifications(account, target_account)
|
||||
|
||||
NotificationWorker.perform_async(block.stream_entry.id, target_account.id) unless target_account.local?
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue