view: fix article not being marked as read when not requested from client cache
This commit is contained in:
parent
68a57364f4
commit
f7cffd2cfd
|
@ -227,10 +227,10 @@
|
||||||
$article = format_article($link, $id, false);
|
$article = format_article($link, $id, false);
|
||||||
print $article['content'];
|
print $article['content'];
|
||||||
return;
|
return;
|
||||||
} else {
|
|
||||||
catchupArticleById($link, $id, 0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
catchupArticleById($link, $id, 0);
|
||||||
|
|
||||||
if (!$_SESSION["bw_limit"]) {
|
if (!$_SESSION["bw_limit"]) {
|
||||||
foreach ($cids as $cid) {
|
foreach ($cids as $cid) {
|
||||||
if ($cid) {
|
if ($cid) {
|
||||||
|
|
|
@ -324,6 +324,8 @@ function view(id) {
|
||||||
|
|
||||||
last_requested_article = id;
|
last_requested_article = id;
|
||||||
|
|
||||||
|
console.log(query);
|
||||||
|
|
||||||
new Ajax.Request("backend.php", {
|
new Ajax.Request("backend.php", {
|
||||||
parameters: query,
|
parameters: query,
|
||||||
onComplete: function(transport) {
|
onComplete: function(transport) {
|
||||||
|
|
Loading…
Reference in New Issue