Make 'owner_uid' required for 'Feeds::_get_title()' and 'Feeds::_get_cat_title()'.

This commit is contained in:
wn_
2025-08-29 12:19:04 +00:00
parent 9aafc7bb8d
commit e5c5a1bf42
6 changed files with 21 additions and 28 deletions

View File

@@ -175,7 +175,7 @@ class API extends Handler {
if ($unread || !$unread_only) {
array_push($cats, [
'id' => $cat_id,
'title' => Feeds::_get_cat_title($cat_id),
'title' => Feeds::_get_cat_title($cat_id, $_SESSION['uid']),
'unread' => (int) $unread,
]);
}
@@ -574,7 +574,7 @@ class API extends Handler {
$unread = Feeds::_get_counters($i, false, true);
if ($unread || !$unread_only) {
$title = Feeds::_get_title($i);
$title = Feeds::_get_title($i, false, $_SESSION['uid']);
$row = [
'id' => $i,