diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-17 11:33:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 11:33:17 +0200 |
commit | 567745c1e66593ef46a86dc0bcfe824cefb04f14 (patch) | |
tree | fd533bcafe02475fbc19681cc764d75fe6f16e12 /app/models | |
parent | 678e07c54485c6cc61b2ac18aa5ceaa290a6fcbd (diff) | |
parent | 69737b703ab1d9b9e49315f12c3aca8cf6df70ac (diff) |
Merge pull request #1539 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/concerns/account_merging.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/concerns/account_merging.rb b/app/models/concerns/account_merging.rb index c3b7018f2..8d37c6e56 100644 --- a/app/models/concerns/account_merging.rb +++ b/app/models/concerns/account_merging.rb @@ -15,7 +15,7 @@ module AccountMerging Status, StatusPin, MediaAttachment, Poll, Report, Tombstone, Favourite, Follow, FollowRequest, Block, Mute, AccountIdentityProof, AccountModerationNote, AccountPin, AccountStat, ListAccount, - PollVote, Mention, AccountDeletionRequest, AccountNote + PollVote, Mention, AccountDeletionRequest, AccountNote, FollowRecommendationSuppression ] owned_classes.each do |klass| @@ -43,6 +43,10 @@ module AccountMerging end end + CanonicalEmailBlock.where(reference_account_id: other_account.id).find_each do |record| + record.update_attribute(:reference_account_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}:*") |