5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 04:46:21 +00:00

fix: indicar que no hay que reportar el error

closes #15621

closes #15622

closes #15623

closes #15729

closes #15730

closes #15731

closes #15735

closes #15736

closes #15824

closes #15838

closes #15839
This commit is contained in:
f 2024-03-27 12:56:54 -03:00
parent 34a858f26a
commit c501107856
No known key found for this signature in database

View file

@ -30,6 +30,9 @@ class ActivityPub
# Al generar una excepción, en lugar de seguir intentando, enviamos
# el reporte.
#
# @param error [Exception]
# @return [Bool]
def handle_error(error)
case error
when ActiveRecord::RecordInvalid then retry_in(ApplicationJob.random_wait)
@ -44,6 +47,8 @@ class ActivityPub
message: 'Esta acción se canceló automáticamente, para regenerarla, volver a correr el proceso con los mismos parámetros.'
})
end
false
end
private