offline: do not sync hidden feeds

master
Andrew Dolgov 16 years ago
parent 7f4f9f4e82
commit c1a0541a99

@ -586,7 +586,7 @@
print "<feeds>"; print "<feeds>";
$result = db_query($link, "SELECT id, title, cat_id FROM $result = db_query($link, "SELECT id, title, cat_id FROM
ttrss_feeds WHERE owner_uid = ".$_SESSION["uid"]); ttrss_feeds WHERE hidden = false AND owner_uid = ".$_SESSION["uid"]);
while ($line = db_fetch_assoc($result)) { while ($line = db_fetch_assoc($result)) {
@ -679,11 +679,15 @@
} }
$result = db_query($link, $result = db_query($link,
"SELECT DISTINCT id,title,guid,link,comments, "SELECT DISTINCT ttrss_entries.id,ttrss_entries.title,
feed_id,content,updated,unread,marked FROM guid,link,comments,
ttrss_user_entries,ttrss_entries feed_id,content,updated,unread,marked FROM
WHERE $unread_qpart $cid_qpart $date_qpart ttrss_user_entries,ttrss_entries,ttrss_feeds
ref_id = id AND owner_uid = ".$_SESSION["uid"]." WHERE $unread_qpart $cid_qpart $date_qpart
hidden = false AND
ttrss_feeds.id = feed_id AND
ref_id = ttrss_entries.id AND
ttrss_user_entries.owner_uid = ".$_SESSION["uid"]."
ORDER BY updated DESC LIMIT $limit OFFSET $skip"); ORDER BY updated DESC LIMIT $limit OFFSET $skip");
if (function_exists('json_encode')) { if (function_exists('json_encode')) {

Loading…
Cancel
Save