1
0
mirror of https://github.com/mastodon/mastodon.git synced 2024-12-19 01:25:06 +01:00
mastodon/app/workers/remote_profile_update_worker.rb
Eugen 982fef811e Fix , fix - Avatar/profile info fetching ()
* Fix , fix  - Work through UpdateRemoteProfileService for both <feed> and <entry> top-level tags

* Improve code quality, remove line unrelated to fix
2017-04-08 13:26:03 +02:00

14 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