mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:45:55 +00:00
api: getHeadlines - truncate article excerpt properly
This commit is contained in:
@@ -231,7 +231,10 @@
|
||||
"feed_id" => $line["feed_id"],
|
||||
);
|
||||
|
||||
if ($show_except) $headline_row["excerpt"] = $line["content_preview"];
|
||||
if ($show_except) {
|
||||
$excerpt = truncate_string(strip_tags($line["content_preview"]), 100);
|
||||
$headline_row["excerpt"] = $excerpt;
|
||||
}
|
||||
|
||||
array_push($headlines, $headline_row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user