mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-23 13:05:12 +01:00
Add variable delay before link verification of remote account links (#27774)
This commit is contained in:
parent
49ba5a9f94
commit
bac9e0b55d
@ -180,7 +180,7 @@ class ActivityPub::ProcessAccountService < BaseService
|
|||||||
end
|
end
|
||||||
|
|
||||||
def check_links!
|
def check_links!
|
||||||
VerifyAccountLinksWorker.perform_async(@account.id)
|
VerifyAccountLinksWorker.perform_in(rand(10.minutes.to_i), @account.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_duplicate_accounts!
|
def process_duplicate_accounts!
|
||||||
|
@ -30,11 +30,7 @@ class UpdateAccountService < BaseService
|
|||||||
def check_links(account)
|
def check_links(account)
|
||||||
return unless account.fields.any?(&:requires_verification?)
|
return unless account.fields.any?(&:requires_verification?)
|
||||||
|
|
||||||
if account.local?
|
|
||||||
VerifyAccountLinksWorker.perform_async(account.id)
|
VerifyAccountLinksWorker.perform_async(account.id)
|
||||||
else
|
|
||||||
VerifyAccountLinksWorker.perform_in(rand(10.minutes.to_i), account.id)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_hashtags(account)
|
def process_hashtags(account)
|
||||||
|
Loading…
Reference in New Issue
Block a user