mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-19 13:54:44 -04:00
Search in all feeds (#7144)
* Search in all feeds Search in PRIORITY_ARCHIVED with `&get=A` fix https://github.com/FreshRSS/FreshRSS/discussions/7143 * Fix type * Search in PRIORITY_ARCHIVED with `&get=Z` * More * Fixes * One more fix * Extra features in user queries * Move i18n key * Fix overview * Enlarge query boxes * Revert i18n spelling * i18n: it Thanks @UserRoot-Luca Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com> --------- Co-authored-by: UserRoot-Luca <55756898+UserRoot-Luca@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1d10b3697d
commit
897e4a3f4a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user