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
|
@ -31,7 +31,13 @@ class UnfollowService < BaseService
|
|||
|
||||
create_notification(follow) if !@target_account.local? && @target_account.activitypub?
|
||||
create_reject_notification(follow) if @target_account.local? && !@source_account.local? && @source_account.activitypub?
|
||||
UnmergeWorker.perform_async(@target_account.id, @source_account.id) unless @options[:skip_unmerge]
|
||||
|
||||
unless @options[:skip_unmerge]
|
||||
UnmergeWorker.perform_async(@target_account.id, @source_account.id, 'home')
|
||||
UnmergeWorker.push_bulk(List.where(account: @source_account).joins(:list_accounts).where(list_accounts: { account_id: @target_account.id }).pluck(:list_id)) do |list_id|
|
||||
[@target_account.id, list_id, 'list']
|
||||
end
|
||||
end
|
||||
|
||||
follow
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue