Fix suspension/unsuspension not working because of FeedManager change (#15099)

lolsob-rspec
ThibG 2020-11-07 13:16:00 +01:00 committed by GitHub
parent b788e7eb6f
commit c11e8737dd
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ class SuspendAccountService < BaseService
def unmerge_from_home_timelines! def unmerge_from_home_timelines!
@account.followers_for_local_distribution.find_each do |follower| @account.followers_for_local_distribution.find_each do |follower|
FeedManager.instance.unmerge_from_timeline(@account, follower) FeedManager.instance.unmerge_from_home(@account, follower)
end end
end end

View File

@ -18,7 +18,7 @@ class UnsuspendAccountService < BaseService
def merge_into_home_timelines! def merge_into_home_timelines!
@account.followers_for_local_distribution.find_each do |follower| @account.followers_for_local_distribution.find_each do |follower|
FeedManager.instance.merge_into_timeline(@account, follower) FeedManager.instance.merge_into_home(@account, follower)
end end
end end