Skip to content

Allow multiple authors on enclosures - #6272

Merged
Alkarex merged 2 commits into
FreshRSS:edgefrom
Alkarex:multiple-enclosure-authors
Apr 8, 2024
Merged

Alkarex merged 2 commits into
FreshRSS:edgefrom
Alkarex:multiple-enclosure-authors

Conversation

@Alkarex

@Alkarex Alkarex commented Apr 6, 2024

Copy link
Copy Markdown
Member

fix #5066

@Alkarex Alkarex added this to the 1.24.0 milestone Apr 6, 2024
@math-GH

math-GH commented Apr 7, 2024

Copy link
Copy Markdown
Contributor

@Alkarex

Alkarex commented Apr 7, 2024

Copy link
Copy Markdown
Member Author

This is how it looks for me:

image

@math-GH

math-GH commented Apr 8, 2024

Copy link
Copy Markdown
Contributor

OK. I removed and added again the feed. Now it works.

@math-GH math-GH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good for me

@Alkarex
Alkarex merged commit 283341e into FreshRSS:edge Apr 8, 2024
@Alkarex
Alkarex deleted the multiple-enclosure-authors branch April 8, 2024 09:10
Alkarex pushed a commit that referenced this pull request Aug 21, 2026
The loop building the media credits assigned instead of appending, so an enclosure with several credits only kept the last one.

`app/views/index/rss.phtml` builds the `<media:credit>` elements for an enclosure in a loop, but assigns instead of appends:

```php
$mediaCredits = '';
foreach ($credits as $credit) {
    $mediaCredits = '<media:credit>' . $credit . '</media:credit>';
}
```

So an enclosure with three credits emits only the last one. Every iteration throws away what the previous one built.

This came in with #6272 ("Allow multiple authors on enclosures", which closed #5066). Parsing and display got multi-credit support, but FreshRSS's own generated RSS still passes on a single credit, so a downstream reader subscribing to a FreshRSS feed sees the same symptom #5066 described.

Co-authored-by: Claude Opus 5 <[email protected]>
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.

[BUG] RSS standard: multiple credits not shown

2 participants