summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-12-07 21:52:41 +0300
committerAndrew Dolgov <[email protected]>2018-12-07 21:52:41 +0300
commit3b7a9219f62ef8584ac15bd576aafbb7203759b1 (patch)
tree06679e63161fedc9056b26a67f5b8b09b3551897 /classes
parent252cdbe458556977def4dfcb48b45947711e5463 (diff)
viewfeed: cleanup unneeded stuff from server JSON output
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/feeds.php8
1 files 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);
}
}