From 919eb87d477b0f23b5fac11c75e884460b77d9e1 Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Sat, 16 Jan 2021 12:59:54 -0500 Subject: [PATCH] [temp] Remove associations from suspend account service --- app/services/suspend_account_service.rb | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/app/services/suspend_account_service.rb b/app/services/suspend_account_service.rb index 854f86a9..3b5c1031 100644 --- a/app/services/suspend_account_service.rb +++ b/app/services/suspend_account_service.rb @@ -1,15 +1,21 @@ # frozen_string_literal: true +# conversations +#chat_block_relationships +#chat_blocked_by_relationships +#chat_conversations +#chat_messages +#subscriptions +#group_accounts +#group_join_requests +#group_removed_accounts +#shortcuts + class SuspendAccountService < BaseService ASSOCIATIONS_ON_SUSPEND = %w( active_relationships block_relationships blocked_by_relationships - chat_block_relationships - chat_blocked_by_relationships - conversations - chat_conversations - chat_messages custom_filters favourites follow_requests @@ -24,11 +30,6 @@ class SuspendAccountService < BaseService scheduled_statuses status_bookmarks status_pins - subscriptions - group_accounts - group_join_requests - group_removed_accounts - shortcuts ).freeze ASSOCIATIONS_ON_DESTROY = %w(