diff options
Diffstat (limited to 'app/Models/EntryDAO.php')
| -rw-r--r-- | app/Models/EntryDAO.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index cd8373766..a90b98a60 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -373,7 +373,6 @@ SQL; * @return int|false affected rows */ public function markRead($ids, bool $is_read = true) { - FreshRSS_UserDAO::touch(); if (is_array($ids)) { //Many IDs at once if (count($ids) < 6) { //Speed heuristics $affected = 0; @@ -391,6 +390,7 @@ SQL; return $affected; } + FreshRSS_UserDAO::touch(); $sql = 'UPDATE `_entry` ' . 'SET is_read=? ' . 'WHERE id IN (' . str_repeat('?,', count($ids) - 1) . '?)'; @@ -408,6 +408,7 @@ SQL; } return $affected; } else { + FreshRSS_UserDAO::touch(); $sql = 'UPDATE `_entry` e INNER JOIN `_feed` f ON e.id_feed=f.id ' . 'SET e.is_read=?,' . 'f.`cache_nbUnreads`=f.`cache_nbUnreads`' . ($is_read ? '-' : '+') . '1 ' |
