]> git.mxchange.org Git - friendica.git/commitdiff
Issue 12753: For remote-self feed items the plink mustn't point to the original feed...
authorMichael <heluecht@pirati.ca>
Mon, 30 Jan 2023 06:58:36 +0000 (06:58 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 30 Jan 2023 06:58:36 +0000 (06:58 +0000)
src/Protocol/Feed.php

index 0abd49c4627e7e234114f152066ee5f103086332..f7bc282c1e810ecd6fbe0fd48ab082ebb83daa93 100644 (file)
@@ -630,7 +630,8 @@ class Feed
                        // Additionally, we have to avoid conflicts with identical URI between imported feeds and these items.
                        if ($notify) {
                                $item['guid'] = Item::guidFromUri($orig_plink, DI::baseUrl()->getHostname());
-                               $item['uri'] = Item::newURI($item['guid']);
+                               $item['uri']  = Item::newURI($item['guid']);
+                               unset($item['plink']);
                                unset($item['thr-parent']);
                                unset($item['parent-uri']);