aboutsummaryrefslogtreecommitdiff
path: root/classes/Pref_Feeds.php
diff options
context:
space:
mode:
authorwn <4-wn@users.noreply.gitlab.tt-rss.org>2025-08-29 10:03:27 -0500
committerwn <4-wn@users.noreply.gitlab.tt-rss.org>2025-08-29 10:03:27 -0500
commit98dbf4973380a525cbdeb542786838de10ad6d08 (patch)
treed0225325d81687fbaaf825f9184f133a09003f80 /classes/Pref_Feeds.php
parent57cd48d9f73478dcd315deb0fd5dab1a756f44fc (diff)
parentecef0ae9512a3227221e107fe47dab91da6e5f4c (diff)
Merge branch 'bugfix/published-feed-title' into 'master'
Fix getting the title for syndicated feeds. See merge request tt-rss/tt-rss!182
Diffstat (limited to 'classes/Pref_Feeds.php')
-rw-r--r--classes/Pref_Feeds.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/Pref_Feeds.php b/classes/Pref_Feeds.php
index d27b7d750..e27a9ccbd 100644
--- a/classes/Pref_Feeds.php
+++ b/classes/Pref_Feeds.php
@@ -1103,7 +1103,7 @@ class Pref_Feeds extends Handler_Protected {
return [
'id' => 'CAT:' . $cat_id,
'items' => array(),
- 'name' => Feeds::_get_cat_title($cat_id),
+ 'name' => Feeds::_get_cat_title($cat_id, $_SESSION['uid']),
'type' => 'category',
'unread' => -1, //(int) Feeds::_get_cat_unread($cat_id);
'bare_id' => $cat_id,
@@ -1115,7 +1115,7 @@ class Pref_Feeds extends Handler_Protected {
*/
private function feedlist_init_feed(int $feed_id, ?string $title = null, bool $unread = false, string $error = '', string $updated = ''): array {
if (!$title)
- $title = Feeds::_get_title($feed_id, false);
+ $title = Feeds::_get_title($feed_id, $_SESSION['uid']);
if ($unread === false)
$unread = Feeds::_get_counters($feed_id, false, true);
@@ -1284,7 +1284,7 @@ class Pref_Feeds extends Handler_Protected {
]);
print json_encode([
- "title" => Feeds::_get_title($feed_id, $is_cat),
+ "title" => Feeds::_get_title($feed_id, $_SESSION['uid'], $is_cat),
"link" => $link
]);
}