Browse Source

Unblocks also federate

closed-social-glitch-2
Eugen Rochko 7 years ago
parent
commit
136e18b875
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      app/services/unblock_service.rb

+ 4
- 1
app/services/unblock_service.rb View File

@ -2,6 +2,9 @@
class UnblockService < BaseService
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

Loading…
Cancel
Save