From 49a92c2437d3be9fba8c6af2d3f328ae525d81c6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Tue, 28 Oct 2025 19:07:14 +0100 Subject: Mark as read 1 or 7 days based on publication date (#8163) Allow the UI for marking as read articles older than 1 or 7 days to also work when sorting by publication date (in which case, the publication date is used). image --- app/Models/BooleanSearch.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Models/BooleanSearch.php') diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php index 7b3cc0e12..720cbf78e 100644 --- a/app/Models/BooleanSearch.php +++ b/app/Models/BooleanSearch.php @@ -421,6 +421,11 @@ class FreshRSS_BooleanSearch implements \Stringable { return $this->operator; } + /** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */ + public function prepend(FreshRSS_BooleanSearch|FreshRSS_Search $search): void { + array_unshift($this->searches, $search); + } + /** @param FreshRSS_BooleanSearch|FreshRSS_Search $search */ public function add(FreshRSS_BooleanSearch|FreshRSS_Search $search): void { $this->searches[] = $search; -- cgit v1.2.3