From b5899648c5cf26ae0fe9e58b2270ead3f97912f7 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 20 Mar 2020 23:22:10 -0600 Subject: [PATCH] Update SharePipeline, fix item relation bug --- app/Jobs/SharePipeline/SharePipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/SharePipeline/SharePipeline.php b/app/Jobs/SharePipeline/SharePipeline.php index f5669009..a3cda16f 100644 --- a/app/Jobs/SharePipeline/SharePipeline.php +++ b/app/Jobs/SharePipeline/SharePipeline.php @@ -80,7 +80,7 @@ class SharePipeline implements ShouldQueue $notification->action = 'share'; $notification->message = $status->shareToText(); $notification->rendered = $status->shareToHtml(); - $notification->item_id = $status->id; + $notification->item_id = $status->reblog_of_id ?? $status->id; $notification->item_type = "App\Status"; $notification->save();