fix catching up for grouped feeds

This commit is contained in:
Andrew Dolgov 2015-09-03 16:41:04 +03:00
parent c7ce438e7b
commit 791877c39d
2 changed files with 6 additions and 3 deletions

View File

@ -59,6 +59,7 @@ function viewfeed(params) {
var infscroll_req = params.infscroll_req; var infscroll_req = params.infscroll_req;
var can_wait = params.can_wait; var can_wait = params.can_wait;
var viewfeed_debug = params.viewfeed_debug; var viewfeed_debug = params.viewfeed_debug;
var method = params.method;
if (is_cat == undefined) if (is_cat == undefined)
is_cat = false; is_cat = false;
@ -102,6 +103,8 @@ function viewfeed(params) {
var query = "?op=feeds&method=view&feed=" + param_escape(feed) + "&" + var query = "?op=feeds&method=view&feed=" + param_escape(feed) + "&" +
toolbar_query; toolbar_query;
if (method) query += "&m=" + param_escape(method);
if (offset > 0) { if (offset > 0) {
if (current_first_id) { if (current_first_id) {
query = query + "&fid=" + param_escape(current_first_id); query = query + "&fid=" + param_escape(current_first_id);

View File

@ -146,11 +146,11 @@ function catchupAllFeeds() {
} }
} }
function viewCurrentFeed() { function viewCurrentFeed(method) {
console.log("viewCurrentFeed"); console.log("viewCurrentFeed: " + method);
if (getActiveFeedId() != undefined) { if (getActiveFeedId() != undefined) {
viewfeed({feed: getActiveFeedId(), is_cat: activeFeedIsCat()}); viewfeed({feed: getActiveFeedId(), is_cat: activeFeedIsCat(), method: method});
} }
return false; // block unneeded form submits return false; // block unneeded form submits
} }