Fix TagFollow
records not being correctly handled in account operations (#33063)
This commit is contained in:
parent
1a88c05274
commit
2d8fed23e6
4 changed files with 7 additions and 1 deletions
|
@ -88,6 +88,9 @@ module Account::Interactions
|
|||
has_many :remote_severed_relationships, foreign_key: 'remote_account_id', inverse_of: :remote_account
|
||||
end
|
||||
|
||||
# Hashtag follows
|
||||
has_many :tag_follows, inverse_of: :account, dependent: :destroy
|
||||
|
||||
# Account notes
|
||||
has_many :account_notes, dependent: :destroy
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ module Account::Merging
|
|||
Follow, FollowRequest, Block, Mute,
|
||||
AccountModerationNote, AccountPin, AccountStat, ListAccount,
|
||||
PollVote, Mention, AccountDeletionRequest, AccountNote, FollowRecommendationSuppression,
|
||||
Appeal
|
||||
Appeal, TagFollow
|
||||
]
|
||||
|
||||
owned_classes.each do |klass|
|
||||
|
|
|
@ -50,6 +50,7 @@ class DeleteAccountService < BaseService
|
|||
owned_lists
|
||||
scheduled_statuses
|
||||
status_pins
|
||||
tag_follows
|
||||
)
|
||||
|
||||
ASSOCIATIONS_ON_DESTROY = %w(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue