Fix fetching pinned notes for remote servers that return a collection of note URIs instead of AP objects, resolves #201

This commit is contained in:
Laura Hausmann 2023-09-12 00:12:13 +02:00
parent 02dc687705
commit 1ce0f778e7
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -724,6 +724,7 @@ export async function updateFeatured(userId: User["id"], resolver?: Resolver) {
); );
// Resolve and regist Notes // Resolve and regist Notes
resolver.reset();
const limit = promiseLimit<Note | null>(2); const limit = promiseLimit<Note | null>(2);
const featuredNotes = await Promise.all( const featuredNotes = await Promise.all(
items items