From 532d229d3396817f702c1ecae79fb7f9bdad9a64 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 10 May 2025 23:17:25 +0200 Subject: Fix newest articles not shown (#7577) * Fix newest articles not shown Case when processing was faster than 1 second. fix https://github.com/FreshRSS/FreshRSS/issues/7412 Regression from https://github.com/FreshRSS/FreshRSS/pull/7149 * Simplify uTimeString() PHPStan has become a bit smarter --- app/Models/EntryDAOSQLite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/EntryDAOSQLite.php') diff --git a/app/Models/EntryDAOSQLite.php b/app/Models/EntryDAOSQLite.php index 99e216e53..c2470f0d6 100644 --- a/app/Models/EntryDAOSQLite.php +++ b/app/Models/EntryDAOSQLite.php @@ -155,7 +155,7 @@ SQL; public function markReadTag(int $id = 0, string $idMax = '0', ?FreshRSS_BooleanSearch $filters = null, int $state = 0, bool $is_read = true): int|false { FreshRSS_UserDAO::touch(); if ($idMax == 0) { - $idMax = time() . '000000'; + $idMax = uTimeString(); Minz_Log::debug('Calling markReadTag(0) is deprecated!'); } -- cgit v1.2.3