You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
452 B
14 lines
452 B
# frozen_string_literal: true
|
|
|
|
class ActivityPub::PrepareFollowersSynchronizationService < BaseService
|
|
include JsonLdHelper
|
|
|
|
def call(account, params)
|
|
@account = account
|
|
|
|
return if params['collectionId'] != @account.followers_url || non_matching_uri_hosts?(@account.uri, params['url']) || @account.local_followers_hash == params['digest']
|
|
|
|
ActivityPub::FollowersSynchronizationWorker.perform_async(@account.id, params['url'])
|
|
end
|
|
end
|