]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #12756 from annando/issue-12753
authorPhilipp <admin+Github@philipp.info>
Mon, 30 Jan 2023 07:32:21 +0000 (08:32 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Jan 2023 07:32:21 +0000 (08:32 +0100)
Issue 12753: For remote-self feed items the plink mustn't point to the original feed link

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']);