Add suspend account functionality to admin UI
This commit is contained in:
parent
f406e01fcf
commit
f978b06dd1
7 changed files with 56 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue