mirror of
https://0xacab.org/sutty/sutty
synced 2025-03-19 05:38:20 +00:00
Merge branch 'issue-15109-1' into production.panel.sutty.nl
This commit is contained in:
commit
b623821fe3
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue