mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:36:21 +00:00
15 lines
428 B
Ruby
15 lines
428 B
Ruby
|
# 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
|