mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
remove uuid from headlines JSON output
This commit is contained in:
@@ -271,7 +271,6 @@ class Feeds extends Handler_Protected {
|
|||||||
$labels_str .= "</span>";
|
$labels_str .= "</span>";
|
||||||
|
|
||||||
$line["labels"] = $labels_str;
|
$line["labels"] = $labels_str;
|
||||||
unset($line["label_cache"]);
|
|
||||||
|
|
||||||
if (count($topmost_article_ids) < 3) {
|
if (count($topmost_article_ids) < 3) {
|
||||||
array_push($topmost_article_ids, $id);
|
array_push($topmost_article_ids, $id);
|
||||||
@@ -361,7 +360,7 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
if ($fav_color && $fav_color != 'fail') {
|
if ($fav_color && $fav_color != 'fail') {
|
||||||
if (!isset($rgba_cache[$feed_id])) {
|
if (!isset($rgba_cache[$feed_id])) {
|
||||||
$rgba_cache[$feed_id] = join(",", _color_unpack($fav_color)) . ", 0.3";
|
$rgba_cache[$feed_id] = join(",", _color_unpack($fav_color)) . ",0.3";
|
||||||
}
|
}
|
||||||
|
|
||||||
$line['favicon_avg_color_rgba'] = $rgba_cache[$feed_id];
|
$line['favicon_avg_color_rgba'] = $rgba_cache[$feed_id];
|
||||||
@@ -369,7 +368,7 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
/* we don't need those */
|
/* we don't need those */
|
||||||
|
|
||||||
foreach (["date_entered", "guid", "last_published", "last_marked", "tag_cache", "favicon_avg_color"] as $k)
|
foreach (["date_entered", "guid", "last_published", "last_marked", "tag_cache", "favicon_avg_color", "uuid", "label_cache"] as $k)
|
||||||
unset($line[$k]);
|
unset($line[$k]);
|
||||||
|
|
||||||
array_push($reply['content'], $line);
|
array_push($reply['content'], $line);
|
||||||
|
|||||||
Reference in New Issue
Block a user