From: Andrew Dolgov Date: Wed, 3 Aug 2011 08:32:30 +0000 (+0400) Subject: view: fix article not being marked as read when not requested from client cache X-Git-Tag: 1.5.6~70 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f7cffd2cfdf6393243ced4b9a19bd93529f3b1f2;p=tt-rss.git view: fix article not being marked as read when not requested from client cache --- diff --git a/backend.php b/backend.php index 29903843..d2c68a64 100644 --- a/backend.php +++ b/backend.php @@ -227,10 +227,10 @@ $article = format_article($link, $id, false); print $article['content']; return; - } else { - catchupArticleById($link, $id, 0); } + catchupArticleById($link, $id, 0); + if (!$_SESSION["bw_limit"]) { foreach ($cids as $cid) { if ($cid) { diff --git a/viewfeed.js b/viewfeed.js index fd188797..2ffad4a3 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -324,6 +324,8 @@ function view(id) { last_requested_article = id; + console.log(query); + new Ajax.Request("backend.php", { parameters: query, onComplete: function(transport) {