FeverAPI fix enclosures (#5214)

Fix regression: provide enclosures as part of HTML content body in FeverAPI
#fix https://github.com/FreshRSS/FreshRSS/issues/5209
This commit is contained in:
Alexandre Alapetite authored and GitHub committed 2023-03-19 17:11:27 +01:00
1 parent 73b4fd74a4
commit 9b424a8fd8
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -187,6 +187,7 @@ HTML;
$thumbnails = $enclosure['thumbnails'] ?? [];
$etitle = $enclosure['title'] ?? '';
$content .= "\n";
$content .= '<figure class="enclosure">';
foreach ($thumbnails as $thumbnail) {
+1 -1
View File
@@ -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)) {