Merge pull request #12756 from annando/issue-12753

Issue 12753: For remote-self feed items the plink mustn't point to the original feed link
This commit is contained in:
Philipp 2023-01-30 08:32:21 +01:00 committed by GitHub
commit 31d01dc684
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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