summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-07 15:00:03 +0300
committerAndrew Dolgov <[email protected]>2009-02-07 15:00:03 +0300
commit7f4f9f4e8230683a5a2cd8656914745881308728 (patch)
treed187ff4fd27dc7b90b26763eb025a59bde82f837 /modules
parent046a2e3cff36659315a28318d6edfbd0303acfad (diff)
offline: try to download status of articles which were marked as read in online while offline client was disconnected
Diffstat (limited to 'modules')
-rw-r--r--modules/backend-rpc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php
index 9996f7f41..ff723646c 100644
--- a/modules/backend-rpc.php
+++ b/modules/backend-rpc.php
@@ -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"]."\"/>";
+ }
+
}
}