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:
@@ -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"]."\"/>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user