aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Thomas White <TomW1605@users.noreply.github.com> 2024-06-06 02:44:38 +0800
committerGravatar GitHub <noreply@github.com> 2024-06-05 20:44:38 +0200
commit2ed58f814eab9c3bbdada6b8e2ebfccfc9395894 (patch)
treee949b1cce6842490eca9c5490ead7903ca7bfb33 /p
parente17c2c447906deb471e25cdc889b9f74e1d715d2 (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 'p')
-rw-r--r--p/api/query.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/p/api/query.php b/p/api/query.php
index 0ba14453f..20a2d8cdc 100644
--- a/p/api/query.php
+++ b/p/api/query.php
@@ -150,6 +150,8 @@ $view->userQuery = $query;
$view->html_url = $query->sharedUrlHtml();
$view->rss_url = $query->sharedUrlRss();
$view->rss_title = $query->getName();
+$view->image_url = $query->getImageUrl();
+$view->description = $query->getDescription() ?: _t('index.feed.rss_of', $view->rss_title);
if ($query->getName() != '') {
FreshRSS_View::_title($query->getName());
}