diff --git a/src/FeedIo/Rule/PublicId.php b/src/FeedIo/Rule/PublicId.php index 6ac39905..74d47092 100644 --- a/src/FeedIo/Rule/PublicId.php +++ b/src/FeedIo/Rule/PublicId.php @@ -18,6 +18,11 @@ class PublicId extends RuleAbstract public function setProperty(NodeInterface $node, \DOMElement $element): void { $node->setPublicId($element->nodeValue); + if ($element->nodeName == 'guid' + && $element->getAttribute('isPermaLink') === 'true' + && is_null($node->getLink())) { + $node->setLink($element->nodeValue); + } } /**