diff options
| author | 2024-06-06 02:44:38 +0800 | |
|---|---|---|
| committer | 2024-06-05 20:44:38 +0200 | |
| commit | 2ed58f814eab9c3bbdada6b8e2ebfccfc9395894 (patch) | |
| tree | e949b1cce6842490eca9c5490ead7903ca7bfb33 /app/Controllers/configureController.php | |
| parent | e17c2c447906deb471e25cdc889b9f74e1d715d2 (diff) | |
add image and description to user query share (#6541)
* add description to user queries and rss feed
* add image url to user queries and rss feed
* Fix i18n
* remove itunes image tag and xml definition
---------
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'app/Controllers/configureController.php')
| -rw-r--r-- | app/Controllers/configureController.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/Controllers/configureController.php b/app/Controllers/configureController.php index d766aa97d..8ec14fce9 100644 --- a/app/Controllers/configureController.php +++ b/app/Controllers/configureController.php @@ -397,6 +397,12 @@ class FreshRSS_configure_Controller extends FreshRSS_ActionController { if (!empty($params['shareOpml']) && ctype_digit($params['shareOpml'])) { $queryParams['shareOpml'] = (bool)$params['shareOpml']; } + if (!empty($params['description']) && is_string($params['description'])) { + $queryParams['description'] = htmlspecialchars_decode($params['description'], ENT_QUOTES); + } + if (!empty($params['imageUrl']) && is_string($params['imageUrl'])) { + $queryParams['imageUrl'] = $params['imageUrl']; + } $queryParams['url'] = Minz_Url::display(['params' => $queryParams]); $queryParams['name'] = $name; |
