diff options
| author | 2025-10-14 15:43:43 +0200 | |
|---|---|---|
| committer | 2025-10-14 15:43:43 +0200 | |
| commit | b7bd18148e65bbdd6be442036a295eb43ca1501e (patch) | |
| tree | 4fba0694a3c45f015f2ed83ebd2356d169241f79 /app/Controllers/configureController.php | |
| parent | faaa770bc0b396d6e842fe816012661f07eac395 (diff) | |
Option to show user labels instead of tags in RSS share (#8112)
* Option to show user labels instead of tags in RSS share
fix https://github.com/FreshRSS/FreshRSS/discussions/8108#discussioncomment-14668813
<img width="711" height="182" alt="image" src="https://github.com/user-attachments/assets/8effb2cd-fffb-4f00-b628-54e963e8b2dc" />
Diffstat (limited to 'app/Controllers/configureController.php')
| -rw-r--r-- | app/Controllers/configureController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index aedb7a2e6..427fcb584 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -458,6 +458,9 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { if (!empty($params['shareRss']) && ctype_digit($params['shareRss'])) { $queryParams['shareRss'] = (bool)$params['shareRss']; } + if (!empty($params['publishLabelsInsteadOfTags']) && ctype_digit($params['publishLabelsInsteadOfTags'])) { + $queryParams['publishLabelsInsteadOfTags'] = (bool)$params['publishLabelsInsteadOfTags']; + } $queries = FreshRSS_Context::userConf()->queries; $queries[$id] = (new FreshRSS_UserQuery($queryParams, FreshRSS_Context::categories(), FreshRSS_Context::labels()))->toArray(); @@ -518,7 +521,7 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { $params = array_filter($_GET, 'is_string', ARRAY_FILTER_USE_KEY); unset($params['name']); unset($params['rid']); - /** @var array{get?:string,name?:string,order?:string,search?:string,state?:int,url?:string,token?:string,shareRss?:bool,shareOpml?:bool,description?:string,imageUrl?:string} $params */ + /** @var array{get?:string,name?:string,order?:string,search?:string,state?:int,url?:string,token?:string,shareRss?:bool,shareOpml?:bool,publishLabelsInsteadOfTags?:bool,description?:string,imageUrl?:string} $params */ $params['url'] = Minz_Url::display(['params' => $params]); $params['name'] = _t('conf.query.number', count($queries) + 1); $queries[] = (new FreshRSS_UserQuery($params, FreshRSS_Context::categories(), FreshRSS_Context::labels()))->toArray(); |
