5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-27 17:26:22 +00:00

Merge branch 'rails' into production.panel.sutty.nl

This commit is contained in:
f 2024-10-14 13:24:01 -03:00
commit 33cb980f08
No known key found for this signature in database

View file

@ -19,8 +19,8 @@ class ActivityPub
#
# @param error [Exception]
# @return [Bool]
discard_on(FastJsonparser::ParseError) do |error|
ExceptionNotifier.notify_exception(error, data: { site: site.name, object: object.uri, body: response.body })
discard_on(FastJsonparser::ParseError) do |job, error|
ExceptionNotifier.notify_exception(error, data: { site: job.site.name, object: job.object.uri, body: job.response.body })
end
retry_on ActiveRecord::RecordInvalid