aboutsummaryrefslogtreecommitdiff
path: root/app/Models/UserQuery.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/UserQuery.php')
-rw-r--r--app/Models/UserQuery.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Models/UserQuery.php b/app/Models/UserQuery.php
index d3a56bb6a..6933deb1f 100644
--- a/app/Models/UserQuery.php
+++ b/app/Models/UserQuery.php
@@ -126,12 +126,18 @@ class FreshRSS_UserQuery {
$this->get = $get;
if ($this->get === '') {
$this->get_type = 'all';
- } elseif (preg_match('/(?P<type>[acfistT])(_(?P<id>\d+))?/', $get, $matches)) {
+ } elseif (preg_match('/(?P<type>[aAcfistTZ])(_(?P<id>\d+))?/', $get, $matches)) {
$id = intval($matches['id'] ?? '0');
switch ($matches['type']) {
- case 'a':
+ case 'a': // All PRIORITY_MAIN_STREAM
$this->get_type = 'all';
break;
+ case 'A': // All except PRIORITY_ARCHIVED
+ $this->get_type = 'A';
+ break;
+ case 'Z': // All including PRIORITY_ARCHIVED
+ $this->get_type = 'Z';
+ break;
case 'c':
$this->get_type = 'category';
$c = $this->categories[$id] ?? null;