diff --git a/packages/backend/src/remote/activitypub/renderer/ordered-collection.ts b/packages/backend/src/remote/activitypub/renderer/ordered-collection.ts index b975399b6..b5457553a 100644 --- a/packages/backend/src/remote/activitypub/renderer/ordered-collection.ts +++ b/packages/backend/src/remote/activitypub/renderer/ordered-collection.ts @@ -11,14 +11,14 @@ export default function ( totalItems: any, first?: string, last?: string, - orderedItems?: Record[], + orderedItems?: (Record | string)[], ): { id: string | null; type: "OrderedCollection"; totalItems: any; first?: string; last?: string; - orderedItems?: Record[]; + orderedItems?: (Record | string)[]; } { const page: any = { id, diff --git a/packages/backend/src/server/activitypub/featured.ts b/packages/backend/src/server/activitypub/featured.ts index 82bb19fa1..149202423 100644 --- a/packages/backend/src/server/activitypub/featured.ts +++ b/packages/backend/src/server/activitypub/featured.ts @@ -37,9 +37,7 @@ export default async (ctx: Router.RouterContext) => { pinings.map((pining) => Notes.findOneByOrFail({ id: pining.noteId })), ); - const renderedNotes = await Promise.all( - pinnedNotes.map((note) => renderNote(note)), - ); + const renderedNotes = pinnedNotes.map((note) => `${config.url}/notes/${note.id}`); const rendered = renderOrderedCollection( `${config.url}/users/${userId}/collections/featured`,