From 9b424a8fd89975c54a5bb458cad73d8dc96afa70 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 19 Mar 2023 17:11:27 +0100 Subject: [PATCH] FeverAPI fix enclosures (#5214) Fix regression: provide enclosures as part of HTML content body in FeverAPI #fix https://github.com/FreshRSS/FreshRSS/issues/5209 --- app/Models/Entry.php | 1 + p/api/fever.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 81ece1ce4..4a0f12c94 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -187,6 +187,7 @@ HTML; $thumbnails = $enclosure['thumbnails'] ?? []; $etitle = $enclosure['title'] ?? ''; + $content .= "\n"; $content .= '
'; foreach ($thumbnails as $thumbnail) { diff --git a/p/api/fever.php b/p/api/fever.php index dfe9572cd..c83b28da3 100644 --- a/p/api/fever.php +++ b/p/api/fever.php @@ -86,7 +86,7 @@ final class FeverDAO extends Minz_ModelPdo $sql = 'SELECT id, guid, title, author, ' . ($entryDAO::isCompressed() ? 'UNCOMPRESS(content_bin) AS content' : 'content') - . ', link, date, is_read, is_favorite, id_feed ' + . ', link, date, is_read, is_favorite, id_feed, attributes ' . 'FROM `_entry` WHERE'; if (!empty($entry_ids)) {