Skip to content

If "Link" does not exist, then set it based on "guid" (PublicId.php) #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 2, 2025

Conversation

Grotax
Copy link

@Grotax Grotax commented Jul 23, 2025

alexdebril#432

Cherry picked the changes from #8.

IgorA100 and others added 3 commits July 23, 2025 13:47
@Grotax Grotax requested review from SMillerDev and Copilot July 23, 2025 11:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements functionality to automatically set a node's link from the <guid> element when the guid has isPermaLink="true" and no link is currently present. This addresses RSS feed parsing scenarios where the guid serves as a permalink but no explicit link element exists.

  • Added conditional logic in PublicId::setProperty() to check for permalink-enabled guid elements
  • Created a new CHANGELOG.md file to document this enhancement

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/FeedIo/Rule/PublicId.php Added logic to set node link from guid when isPermaLink is true and link is null
CHANGELOG.md Added new changelog file documenting the enhancement

…r consistency with modern PHP practices and better readability.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Grotax Grotax merged commit 4b3bdfb into main Aug 2, 2025
4 checks passed
@Grotax Grotax deleted the import-pr-432 branch August 2, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants