From 3b7a9219f62ef8584ac15bd576aafbb7203759b1 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 7 Dec 2018 21:52:41 +0300 Subject: [PATCH] viewfeed: cleanup unneeded stuff from server JSON output --- classes/feeds.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index d25759283..71a7cd037 100755 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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); } }