From 59e83455f188e48796383bfe4be99deb81cb1caa Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Jun 2015 15:15:04 +0300 Subject: add some more bayes stuff --- include/rssfuncs.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/rssfuncs.php b/include/rssfuncs.php index 17233914e..4dbb7c18e 100644 --- a/include/rssfuncs.php +++ b/include/rssfuncs.php @@ -680,6 +680,7 @@ $article = array("owner_uid" => $owner_uid, // read only "guid" => $entry_guid, // read only + "guid_hashed" => $entry_guid_hashed, // read only "title" => $entry_title, "content" => $entry_content, "link" => $entry_link, @@ -968,6 +969,10 @@ lang = '$entry_language' WHERE id = '$ref_id'"); + // update aux data + db_query("UPDATE ttrss_user_entries + SET score = '$score' WHERE ref_id = '$ref_id'"); + if ($mark_unread_on_update) { db_query("UPDATE ttrss_user_entries SET last_read = null, unread = true WHERE ref_id = '$ref_id'"); -- cgit v1.2.3