Removed unused ostatus, activitypub actions from service code
• Removed: - unused ostatus, activitypub actions from service code
This commit is contained in:
@@ -69,8 +69,6 @@ class SuspendAccountService < BaseService
|
||||
end
|
||||
|
||||
def purge_content!
|
||||
distribute_delete_actor! if @account.local? && !@options[:skip_distribution]
|
||||
|
||||
@account.statuses.reorder(nil).find_in_batches do |statuses|
|
||||
BatchedRemoveStatusService.new.call(statuses, skip_side_effects: @options[:destroy])
|
||||
end
|
||||
@@ -108,16 +106,6 @@ class SuspendAccountService < BaseService
|
||||
association.in_batches.destroy_all
|
||||
end
|
||||
|
||||
def distribute_delete_actor!
|
||||
# ActivityPub::DeliveryWorker.push_bulk(delivery_inboxes) do |inbox_url|
|
||||
# [delete_actor_json, @account.id, inbox_url]
|
||||
# end
|
||||
|
||||
# ActivityPub::LowPriorityDeliveryWorker.push_bulk(low_priority_delivery_inboxes) do |inbox_url|
|
||||
# [delete_actor_json, @account.id, inbox_url]
|
||||
# end
|
||||
end
|
||||
|
||||
def delete_actor_json
|
||||
return @delete_actor_json if defined?(@delete_actor_json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user