Issue 14667: Pinned Bluesky feeds are fetched again #1605

Merged
nupplaPhil merged 1 commit from heluecht/friendica-addons:bluesky-pinned into develop 2025-05-03 22:02:17 +02:00

View file

@ -1142,8 +1142,14 @@ function bluesky_get_feeds(int $uid): array
return [];
}
foreach ($preferences->preferences as $preference) {
if ($preference->$type == 'app.bsky.actor.defs#savedFeedsPref') {
return $preference->pinned ?? [];
if ($preference->$type == 'app.bsky.actor.defs#savedFeedsPrefV2') {
$pinned = [];
foreach ($preference->items as $item) {
if (($item->type == 'feed') && $item->pinned) {
$pinned[] = $item->value;
}
}
return $pinned;
}
}
return [];