A free, self-hostable news aggregator…
FeverAPI fix enclosures (#5214)
Alexandre Alapetite9b424a8fd899
diff --git a/app/Models/Entry.php b/app/Models/Entry.phpindex 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 .= '<figure class="enclosure">';foreach ($thumbnails as $thumbnail) {diff --git a/p/api/fever.php b/p/api/fever.phpindex 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)) {