A free, self-hostable news aggregator…
Missing touch for SQLite and PostgreSQL (#2008)
Alexandre Alapetite1d49dda23383
diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.phpindex 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!');