mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-06 17:24:26 +02:00
Issue 14667: Pinned Bluesky feeds are fetched again
This commit is contained in:
parent
d95137ce6b
commit
2289fdc97e
1 changed files with 8 additions and 2 deletions
|
@ -1174,8 +1174,14 @@ function bluesky_get_feeds(int $uid): array
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
foreach ($preferences->preferences as $preference) {
|
foreach ($preferences->preferences as $preference) {
|
||||||
if ($preference->$type == 'app.bsky.actor.defs#savedFeedsPref') {
|
if ($preference->$type == 'app.bsky.actor.defs#savedFeedsPrefV2') {
|
||||||
return $preference->pinned ?? [];
|
$pinned = [];
|
||||||
|
foreach ($preference->items as $item) {
|
||||||
|
if (($item->type == 'feed') && $item->pinned) {
|
||||||
|
$pinned[] = $item->value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $pinned;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue