From d061e63fa5cd5414542eee47fda6ee596b8561dd Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 22 Jan 2021 21:56:54 +0100 Subject: 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 --- p/api/greader.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'p/api') diff --git a/p/api/greader.php b/p/api/greader.php index f93540285..5c0e754bd 100644 --- a/p/api/greader.php +++ b/p/api/greader.php @@ -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)), ), -- cgit v1.2.3