0
0
Fork 0

Add suspend account functionality to admin UI

This commit is contained in:
Eugen Rochko 2016-12-06 18:22:59 +01:00
parent f406e01fcf
commit f978b06dd1
7 changed files with 56 additions and 13 deletions

View file

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