summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/functions.php b/functions.php
index 5fefe6bee..464a2cbdd 100644
--- a/functions.php
+++ b/functions.php
@@ -4044,6 +4044,9 @@
unread = NOT unread,last_read = NOW()
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
}
+
+ $feed_id = getArticleFeed($link, $id);
+ ccache_update($link, $feed_id, $_SESSION["uid"]);
}
function make_guid_from_title($title) {
@@ -6469,4 +6472,15 @@
db_query($link, "COMMIT");
}
+
+ function getArticleFeed($link, $id) {
+ $result = db_query($link, "SELECT feed_id FROM ttrss_user_entries
+ WHERE ref_id = '$id'");
+
+ if (db_num_rows($result) != 0) {
+ return db_fetch_result($result, 0, "feed_id");
+ } else {
+ return 0;
+ }
+ }
?>