offline: try to download status of articles which were marked as read in online while offline client was disconnected
This commit is contained in:
parent
046a2e3cff
commit
7f4f9f4e82
|
@ -588,8 +588,6 @@ function parse_counters(reply, scheduled_call) {
|
|||
} */
|
||||
}
|
||||
|
||||
update_local_sync_data();
|
||||
|
||||
} catch (e) {
|
||||
exception_error("parse_counters", e);
|
||||
}
|
||||
|
|
|
@ -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"]."\"/>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -734,9 +734,9 @@ function offline_download_parse(stage, transport) {
|
|||
"updated < DATETIME('NOW', 'localtime', '-31 days')");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
update_local_sync_data();
|
||||
}
|
||||
|
||||
// notify('');
|
||||
|
||||
|
|
Loading…
Reference in New Issue