mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-06 07:28:29 -05:00
GReader API add canonical information (#3391)
For fluent-reader #fix https://github.com/FreshRSS/FreshRSS/issues/3389 Better compatibility InoReader https://www.inoreader.com/developers/stream-contents
This commit is contained in:
committed by
GitHub
parent
2981714f15
commit
d061e63fa5
@@ -507,6 +507,9 @@ function entriesToArray($entries) {
|
||||
'published' => $entry->date(true),
|
||||
'title' => escapeToUnicodeAlternative($entry->title(), false),
|
||||
'summary' => array('content' => $entry->content()),
|
||||
'canonical' => array(
|
||||
array('href' => htmlspecialchars_decode($entry->link(), ENT_QUOTES)),
|
||||
),
|
||||
'alternate' => array(
|
||||
array('href' => htmlspecialchars_decode($entry->link(), ENT_QUOTES)),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user