Browse Source

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

closed-social-v3
ThibG 3 years ago
committed by GitHub
parent
commit
f84239ecab
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      app/services/suspend_account_service.rb
  2. +1
    -1
      app/services/unsuspend_account_service.rb

+ 1
- 1
app/services/suspend_account_service.rb View File

@ -18,7 +18,7 @@ class SuspendAccountService < BaseService
def unmerge_from_home_timelines!
@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

+ 1
- 1
app/services/unsuspend_account_service.rb View File

@ -18,7 +18,7 @@ class UnsuspendAccountService < BaseService
def merge_into_home_timelines!
@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

Loading…
Cancel
Save