Merge remote-tracking branch 'parent/main' into kb-upstream-231012

This commit is contained in:
KMY 2023-10-12 19:47:01 +09:00
commit 68e251cf0c
24 changed files with 159 additions and 97 deletions

View file

@ -38,7 +38,13 @@ class UpdateAccountService < BaseService
end
def check_links(account)
VerifyAccountLinksWorker.perform_async(account.id) if account.fields.any?(&:requires_verification?)
return unless account.fields.any?(&:requires_verification?)
if account.local?
VerifyAccountLinksWorker.perform_async(account.id)
else
VerifyAccountLinksWorker.perform_in(rand(10.minutes.to_i), account.id)
end
end
def process_hashtags(account)