From f8ce59b41169500edda432a217f55084b88e205c Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 6 Jul 2021 04:36:45 +0000 Subject: [PATCH] Use the post uri-id for false reshares --- src/Model/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 88c973efd..720fd76ed 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2781,7 +2781,7 @@ class Item if (!empty($shared_attachments)) { $s = self::addVisualAttachments($shared_attachments, $item, $s, true); - $s = self::addLinkAttachment($shared_uri_id, $shared_attachments, $body, $s, true, []); + $s = self::addLinkAttachment($shared_uri_id ?: $item['uri-id'], $shared_attachments, $body, $s, true, []); $s = self::addNonVisualAttachments($shared_attachments, $item, $s, true); $body = preg_replace("/\s*\[share .*?\].*?\[\/share\]\s*/ism", '', $body); }