viewfeed: cleanup unneeded stuff from server JSON output
This commit is contained in:
parent
252cdbe458
commit
3b7a9219f6
|
@ -121,9 +121,6 @@ class Feeds extends Handler_Protected {
|
||||||
$reply = array();
|
$reply = array();
|
||||||
|
|
||||||
$rgba_cache = array();
|
$rgba_cache = array();
|
||||||
|
|
||||||
$timing_info = microtime(true);
|
|
||||||
|
|
||||||
$topmost_article_ids = array();
|
$topmost_article_ids = array();
|
||||||
|
|
||||||
if (!$offset) $offset = 0;
|
if (!$offset) $offset = 0;
|
||||||
|
@ -370,6 +367,11 @@ class Feeds extends Handler_Protected {
|
||||||
$line['favicon_avg_color_rgba'] = $rgba_cache[$feed_id];
|
$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);
|
array_push($reply['content'], $line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue