viewfeed: return counters when subop is present or when in CDM
This commit is contained in:
parent
96811a55e6
commit
d36f560740
|
@ -387,11 +387,11 @@
|
||||||
|
|
||||||
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("20", $timing_info);
|
||||||
|
|
||||||
/* if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop || !$offset) {
|
if (get_pref($link, 'COMBINED_DISPLAY_MODE') || $subop) {
|
||||||
print "<counters><![CDATA[";
|
print "<counters><![CDATA[";
|
||||||
print json_encode(getAllCounters($link, $omode, $feed));
|
print json_encode(getAllCounters($link, $omode, $feed));
|
||||||
print "]]></counters>";
|
print "]]></counters>";
|
||||||
} */
|
}
|
||||||
|
|
||||||
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("30", $timing_info);
|
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("30", $timing_info);
|
||||||
|
|
||||||
|
|
|
@ -2321,7 +2321,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function catchup_feed($link, $feed, $cat_view, $owner_uid) {
|
function catchup_feed($link, $feed, $cat_view, $owner_uid = false) {
|
||||||
|
|
||||||
if (!$owner_uid) $owner_uid = $_SESSION['uid'];
|
if (!$owner_uid) $owner_uid = $_SESSION['uid'];
|
||||||
|
|
||||||
|
|
|
@ -202,6 +202,9 @@ function headlines_callback2(transport, feed_cur_page) {
|
||||||
console.log("no cached articles received");
|
console.log("no cached articles received");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (counters)
|
||||||
|
parse_counters(counters);
|
||||||
|
else
|
||||||
request_counters();
|
request_counters();
|
||||||
|
|
||||||
if (runtime_info) {
|
if (runtime_info) {
|
||||||
|
|
Loading…
Reference in New Issue