5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 00:36:21 +00:00
panel/app/jobs/activity_pub/fediblock_fetch_job.rb

15 lines
428 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class ActivityPub
# Se encarga de mantener las listas de bloqueo actualizadas
class FediblockFetchJob < ApplicationJob
def perform
ActivityPub::Fediblock.find_each do |fediblock|
fediblock.process!
rescue ActivityPub::Fediblock::FediblockDownloadError => e
ExceptionNotifier.notify_exception(e, data: { fediblock: fediblock.title })
end
end
end
end