summaryrefslogtreecommitdiff
path: root/app/Models/BooleanSearch.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-10-28 19:07:14 +0100
committerGravatar GitHub <noreply@github.com> 2025-10-28 19:07:14 +0100
commit49a92c2437d3be9fba8c6af2d3f328ae525d81c6 (patch)
treefa62707782aa152bb5f28af1a4fce863d418a0b9 /app/Models/BooleanSearch.php
parent6440f9c9a91160103b7c2c369761ada31926c02a (diff)
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). <img width="382" height="229" alt="image" src="https://github.com/user-attachments/assets/a630dec8-1e18-4766-8392-59fb593dd73d" />
Diffstat (limited to 'app/Models/BooleanSearch.php')
-rw-r--r--app/Models/BooleanSearch.php5
1 files changed, 5 insertions, 0 deletions
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
@@ -422,6 +422,11 @@ class FreshRSS_BooleanSearch implements \Stringable {
}
/** @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;
}