From 78430758d9ae10da79c2f05dd731d4633ff9666f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 14 Oct 2024 13:23:05 -0300 Subject: [PATCH] fix: corregir la sintaxis de discard_on closes #17566 closes #17573 closes #17574 closes #17578 --- app/jobs/activity_pub/fetch_job.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/activity_pub/fetch_job.rb b/app/jobs/activity_pub/fetch_job.rb index 07190c35..96ca10b0 100644 --- a/app/jobs/activity_pub/fetch_job.rb +++ b/app/jobs/activity_pub/fetch_job.rb @@ -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