summaryrefslogtreecommitdiff
path: root/backend.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-10-25 12:03:21 +0100
committerAndrew Dolgov <[email protected]>2005-10-25 12:03:21 +0100
commit7db95187416e9523d37c7caccc5aeeed0862ac42 (patch)
tree0aab96b0d2085a3edb560550359685f0d1818d8b /backend.php
parent919bb09c5169801cccc111e2d80e8e46f00085f7 (diff)
implement catchup for labels
Diffstat (limited to 'backend.php')
-rw-r--r--backend.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/backend.php b/backend.php
index c468ad0c4..378b645f8 100644
--- a/backend.php
+++ b/backend.php
@@ -478,8 +478,18 @@
} else if ($feed < -10) { // label
- // FIXME, implement catchup for labels
+ $label_id = -$feed - 11;
+ $tmp_result = db_query($link, "SELECT sql_exp FROM ttrss_labels
+ WHERE id = '$label_id'");
+
+ if ($tmp_result) {
+ $sql_exp = db_fetch_result($tmp_result, 0, "sql_exp");
+
+ db_query($link, "UPDATE ttrss_entries
+ SET unread = false,last_read = NOW()
+ WHERE $sql_exp");
+ }
}
} else { // tag
// FIXME, implement catchup for tags