1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-25 13:57:11 +00:00

offline: try to download status of articles which were marked as read in online while offline client was disconnected

This commit is contained in:
Andrew Dolgov
2009-02-07 15:00:03 +03:00
parent 046a2e3cff
commit 7f4f9f4e82
3 changed files with 15 additions and 4 deletions

View File

@@ -564,6 +564,19 @@
}
}
/* Maybe we need to further update local DB for this client */
$query = "SELECT ref_id,unread FROM ttrss_user_entries
WHERE last_read >= '$last_online' AND
owner_uid = ".$_SESSION["uid"];
$result = db_query($link, $query);
while ($line = db_fetch_assoc($result)) {
print "<sync-ok id=\"".$line["ref_id"]."\"/>";
}
}
}