viewfeed: cleanup unneeded stuff from server JSON output

This commit is contained in:
Andrew Dolgov 2018-12-07 21:52:41 +03:00
parent 252cdbe458
commit 3b7a9219f6
1 changed files with 5 additions and 3 deletions

View File

@ -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);
}
}