about summary refs log tree commit diff
path: root/app/models/concerns
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-03-12 11:51:25 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-03-12 11:51:25 +0100
commitbb9a6fb5c239f4846e2e20c8435edb46f0c7c548 (patch)
tree2f6120abc31a698b1e1a7dbf442383a79d42ee77 /app/models/concerns
parent2c8bb1745359a3bf200d37383dc56d5951e2b6bc (diff)
parentd3aa9cf7744eede43c5c1b9097eb1f0720185ccd (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/concerns')
-rw-r--r--app/models/concerns/account_merging.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/concerns/account_merging.rb b/app/models/concerns/account_merging.rb
index 119773e6b..8161761fb 100644
--- a/app/models/concerns/account_merging.rb
+++ b/app/models/concerns/account_merging.rb
@@ -15,7 +15,8 @@ module AccountMerging
       Status, StatusPin, MediaAttachment, Poll, Report, Tombstone, Favourite,
       Follow, FollowRequest, Block, Mute,
       AccountModerationNote, AccountPin, AccountStat, ListAccount,
-      PollVote, Mention, AccountDeletionRequest, AccountNote, FollowRecommendationSuppression
+      PollVote, Mention, AccountDeletionRequest, AccountNote, FollowRecommendationSuppression,
+      Appeal
     ]
 
     owned_classes.each do |klass|
@@ -47,6 +48,10 @@ module AccountMerging
       record.update_attribute(:reference_account_id, id)
     end
 
+    Appeal.where(account_warning_id: other_account.id).find_each do |record|
+      record.update_attribute(:account_warning_id, id)
+    end
+
     # Some follow relationships have moved, so the cache is stale
     Rails.cache.delete_matched("followers_hash:#{id}:*")
     Rails.cache.delete_matched("relationships:#{id}:*")