From 7940b31685534828ddbf95d4e9003e47fa2a0bbe Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Mar 2022 21:09:14 +0000 Subject: [PATCH] Don't use the GUID value directly --- src/Protocol/Feed.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index d74d26f489..cde81394d3 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -310,7 +310,9 @@ class Feed $guid = XML::getFirstNodeValue($xpath, 'guid/text()', $entry); if (!empty($guid)) { $item["uri"] = $guid; - $item["guid"] = $guid; + + // Don't use the GUID value directly but instead use it as a basis for the GUID + $item["guid"] = Item::guidFromUri($guid, parse_url($guid, PHP_URL_HOST) ?? parse_url($item["plink"], PHP_URL_HOST)); } if (empty($item["uri"])) { -- 2.39.5