* Add: #586 保留中のリモートアカウントからのフォローが飛んできた場合に記録する * 本家に戻す処理を修正 * Fix test * Fix worker link * Fix test * リモートアカウント拒否時に既存のリクエストを削除
This commit is contained in:
parent
1b3c0e3fb7
commit
dfc9f35d71
15 changed files with 262 additions and 31 deletions
13
app/workers/enable_follow_requests_worker.rb
Normal file
13
app/workers/enable_follow_requests_worker.rb
Normal file
|
@ -0,0 +1,13 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class EnableFollowRequestsWorker
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform(account_id)
|
||||
account = Account.find_by(id: account_id)
|
||||
return true if account.nil?
|
||||
return true if account.suspended?
|
||||
|
||||
EnableFollowRequestsService.new.call(account)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue