* 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
|
@ -48,13 +48,17 @@ class ActivityPub::ProcessCollectionService < BaseService
|
|||
end
|
||||
|
||||
def suspended_actor?
|
||||
@account.suspended? && !activity_allowed_while_suspended?
|
||||
@account.suspended? && (@account.remote_pending ? !activity_allowed_while_remote_pending? : !activity_allowed_while_suspended?)
|
||||
end
|
||||
|
||||
def activity_allowed_while_suspended?
|
||||
%w(Delete Reject Undo Update).include?(@json['type'])
|
||||
end
|
||||
|
||||
def activity_allowed_while_remote_pending?
|
||||
%w(Follow).include?(@json['type']) || activity_allowed_while_suspended?
|
||||
end
|
||||
|
||||
def process_items(items)
|
||||
items.reverse_each.filter_map { |item| process_item(item) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue