Removed unused ostatus, activitypub actions from service code

• Removed:
- unused ostatus, activitypub actions from service code
This commit is contained in:
mgabdev
2020-11-09 12:25:14 -06:00
parent bfd1e1ef9d
commit 4100f3dd63
14 changed files with 0 additions and 264 deletions

View File

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