mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:55:56 +00:00
viewfeed: cleanup unneeded stuff from server JSON output
This commit is contained in:
@@ -121,9 +121,6 @@ class Feeds extends Handler_Protected {
|
||||
$reply = array();
|
||||
|
||||
$rgba_cache = array();
|
||||
|
||||
$timing_info = microtime(true);
|
||||
|
||||
$topmost_article_ids = array();
|
||||
|
||||
if (!$offset) $offset = 0;
|
||||
@@ -370,6 +367,11 @@ class Feeds extends Handler_Protected {
|
||||
$line['favicon_avg_color_rgba'] = $rgba_cache[$feed_id];
|
||||
}
|
||||
|
||||
/* we don't need those */
|
||||
|
||||
foreach (["date_entered", "guid", "last_published", "last_marked", "tag_cache", "favicon_avg_color"] as $k)
|
||||
unset($line[$k]);
|
||||
|
||||
array_push($reply['content'], $line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user