|
|
@ -12,14 +12,14 @@ class SuspendAccountService < BaseService |
|
|
|
private |
|
|
|
|
|
|
|
def purge_content |
|
|
|
@account.media_attachments.destroy_all! |
|
|
|
@account.statuses.destroy_all! |
|
|
|
@account.stream_entries.destroy_all! |
|
|
|
@account.mentions.destroy_all! |
|
|
|
@account.notifications.destroy_all! |
|
|
|
@account.favourites.destroy_all! |
|
|
|
@account.active_relationships.destroy_all! |
|
|
|
@account.passive_relationships.destroy_all! |
|
|
|
@account.media_attachments.destroy_all |
|
|
|
@account.statuses.destroy_all |
|
|
|
@account.stream_entries.destroy_all |
|
|
|
@account.mentions.destroy_all |
|
|
|
@account.notifications.destroy_all |
|
|
|
@account.favourites.destroy_all |
|
|
|
@account.active_relationships.destroy_all |
|
|
|
@account.passive_relationships.destroy_all |
|
|
|
end |
|
|
|
|
|
|
|
def purge_profile |
|
|
@ -34,6 +34,6 @@ class SuspendAccountService < BaseService |
|
|
|
end |
|
|
|
|
|
|
|
def unsubscribe_push_subscribers |
|
|
|
@account.subscriptions.destroy_all! |
|
|
|
@account.subscriptions.destroy_all |
|
|
|
end |
|
|
|
end |