|
|
@ -12,8 +12,11 @@ class SuspendAccountService < BaseService |
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
def purge_content |
|
|
|
def purge_content |
|
|
|
|
|
|
|
@account.statuses.find_each do |status| |
|
|
|
|
|
|
|
RemoveStatusService.new.call(status) |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@account.media_attachments.destroy_all |
|
|
|
@account.media_attachments.destroy_all |
|
|
|
@account.statuses.destroy_all |
|
|
|
|
|
|
|
@account.stream_entries.destroy_all |
|
|
|
@account.stream_entries.destroy_all |
|
|
|
@account.mentions.destroy_all |
|
|
|
@account.mentions.destroy_all |
|
|
|
@account.notifications.destroy_all |
|
|
|
@account.notifications.destroy_all |
|
|
|