Change lists to reflect added and removed users retroactively (#32930)
This commit is contained in:
parent
f2976ec9a4
commit
2b5faa2ba3
12 changed files with 157 additions and 25 deletions
|
@ -81,7 +81,10 @@ class FollowService < BaseService
|
|||
follow = @source_account.follow!(@target_account, **follow_options.merge(rate_limit: @options[:with_rate_limit], bypass_limit: @options[:bypass_limit]))
|
||||
|
||||
LocalNotificationWorker.perform_async(@target_account.id, follow.id, follow.class.name, 'follow')
|
||||
MergeWorker.perform_async(@target_account.id, @source_account.id)
|
||||
MergeWorker.perform_async(@target_account.id, @source_account.id, 'home')
|
||||
MergeWorker.push_bulk(List.where(account: @source_account).joins(:list_accounts).where(list_accounts: { account_id: @target_account.id }).pluck(:id)) do |list_id|
|
||||
[@target_account.id, list_id, 'list']
|
||||
end
|
||||
|
||||
follow
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue