0
0
Fork 0

Federate blocks with the http://mastodon.social/schema/1.0 verb namespace

This commit is contained in:
Eugen Rochko 2017-01-02 12:17:51 +01:00
parent 9f9e11ce07
commit c04002b340
3 changed files with 18 additions and 1 deletions

View file

@ -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