Преглед изворни кода

FeverAPI fix enclosures (#5214)

Fix regression: provide enclosures as part of HTML content body in FeverAPI
#fix https://github.com/FreshRSS/FreshRSS/issues/5209
Alexandre Alapetite пре 3 година
родитељ
комит
9b424a8fd8
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      app/Models/Entry.php
  2. 1 1
      p/api/fever.php

+ 1 - 0
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) {

+ 1 - 1
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)) {