mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-24 16:18:07 +01:00
982fef811e
* Fix #1141, fix #1126 - Work through UpdateRemoteProfileService for both <feed> and <entry> top-level tags * Improve code quality, remove line unrelated to fix
13 lines
310 B
Ruby
13 lines
310 B
Ruby
# frozen_string_literal: true
|
|
|
|
class RemoteProfileUpdateWorker
|
|
include Sidekiq::Worker
|
|
|
|
sidekiq_options queue: 'pull'
|
|
|
|
def perform(account_id, body, resubscribe)
|
|
UpdateRemoteProfileService.new.call(body, Account.find(account_id), resubscribe)
|
|
rescue ActiveRecord::RecordNotFound
|
|
true
|
|
end
|
|
end
|