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