diff options
| author | 2018-09-08 20:50:59 +0200 | |
|---|---|---|
| committer | 2018-09-08 20:50:59 +0200 | |
| commit | 1d49dda233836f79ceaa4551cdb35d749788a369 (patch) | |
| tree | 0793d24a74a1091f607a6382836a952b955e2d63 /app/Models/EntryDAOSQLite.php | |
| parent | b5dfb5538937e95a95e291cafe6234522d9c93d4 (diff) | |
Missing touch for SQLite and PostgreSQL (#2008)
For last user activity.
Forgotten in https://github.com/FreshRSS/FreshRSS/pull/1358
Diffstat (limited to 'app/Models/EntryDAOSQLite.php')
| -rw-r--r-- | app/Models/EntryDAOSQLite.php | 3 |
1 files changed, 3 insertions, 0 deletions
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!'); |
