mirror of https://github.com/mastodon/mastodon
Unblocks also federate
This commit is contained in:
parent
65647a2472
commit
136e18b875
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
class UnblockService < BaseService
|
class UnblockService < BaseService
|
||||||
def call(account, target_account)
|
def call(account, target_account)
|
||||||
account.unblock!(target_account) if account.blocking?(target_account)
|
return unless account.blocking?(target_account)
|
||||||
|
|
||||||
|
unblock = account.unblock!(target_account)
|
||||||
|
NotificationWorker.perform_async(unblock.stream_entry.id, target_account.id) unless target_account.local?
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue