From 1d49dda233836f79ceaa4551cdb35d749788a369 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 8 Sep 2018 20:50:59 +0200 Subject: Missing touch for SQLite and PostgreSQL (#2008) For last user activity. Forgotten in https://github.com/FreshRSS/FreshRSS/pull/1358 --- app/Models/EntryDAOSQLite.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/Models') diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php index 30d849cf4..944de8470 100644 --- a/app/Models/EntryDAOSQLite.php +++ b/app/Models/EntryDAOSQLite.php @@ -101,6 +101,7 @@ DROP TABLE IF EXISTS `tmp`; * @return integer affected rows */ public function markRead($ids, $is_read = true) { + FreshRSS_UserDAO::touch(); if (is_array($ids)) { //Many IDs at once (used by API) if (true) { //Speed heuristics //TODO: Not implemented yet for SQLite (so always call IDs one by one) $affected = 0; @@ -160,6 +161,7 @@ DROP TABLE IF EXISTS `tmp`; * @return integer affected rows */ public function markReadEntries($idMax = 0, $onlyFavorites = false, $priorityMin = 0, $filters = null, $state = 0, $is_read = true) { + FreshRSS_UserDAO::touch(); if ($idMax == 0) { $idMax = time() . '000000'; Minz_Log::debug('Calling markReadEntries(0) is deprecated!'); @@ -200,6 +202,7 @@ DROP TABLE IF EXISTS `tmp`; * @return integer affected rows */ public function markReadCat($id, $idMax = 0, $filters = null, $state = 0, $is_read = true) { + FreshRSS_UserDAO::touch(); if ($idMax == 0) { $idMax = time() . '000000'; Minz_Log::debug('Calling markReadCat(0) is deprecated!'); -- cgit v1.2.3