Improve suspend account service
This commit is contained in:
parent
f978b06dd1
commit
2ef9f36cf2
2 changed files with 8 additions and 5 deletions
|
@ -11,10 +11,10 @@ class RemoveStatusService < BaseService
|
|||
|
||||
status.destroy!
|
||||
|
||||
if status.account.local?
|
||||
HubPingWorker.perform_async(status.account.id)
|
||||
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
|
||||
end
|
||||
return unless status.account.local?
|
||||
|
||||
HubPingWorker.perform_async(status.account.id)
|
||||
Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue