diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-06 18:22:59 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-12-06 18:22:59 +0100 |
commit | f978b06dd188fef4c2ece5e787818579b663ddf8 (patch) | |
tree | 70a0969b208ac3b0393c5fb9e54b8bd222782e6f /app/services | |
parent | f406e01fcf7d69045cf3ad8ea8dea51acd85535b (diff) |
Add suspend account functionality to admin UI
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/suspend_account_service.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 2361c0ec7..729bf42fe 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -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 |