diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-05-17 10:30:34 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-05-17 10:30:34 +0200 |
commit | 69737b703ab1d9b9e49315f12c3aca8cf6df70ac (patch) | |
tree | fd533bcafe02475fbc19681cc764d75fe6f16e12 /app/models/concerns | |
parent | 678e07c54485c6cc61b2ac18aa5ceaa290a6fcbd (diff) | |
parent | 4c7efdba402b6b8ee0363b6f1dc2c202303d7623 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `README.md`: our READMEs are entirely different and upstream's has been updated. Kept our README.
Diffstat (limited to 'app/models/concerns')
-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}:*") |