]> git.mxchange.org Git - friendica.git/commitdiff
Use the post uri-id for false reshares
authorMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 04:36:45 +0000 (04:36 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 6 Jul 2021 04:36:45 +0000 (04:36 +0000)
src/Model/Item.php

index 88c973efdab2afc41c6eb0f74716ad9b3f164403..720fd76ed176a972c1d3acf16e4a3cc24e374d79 100644 (file)
@@ -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);
                }