Loading docs/manual/collections.md +10 −0 Original line number Diff line number Diff line Loading @@ -1423,6 +1423,12 @@ async function getBookmarkedPostsByUserId( ): Promise<{ posts: BookmarkedPost[]; nextCursor: string | null }> { return { posts: [], nextCursor: null }; } /** * A hypothetical function that counts bookmarked posts for a user. */ async function getBookmarkCountByUserId(userId: string): Promise<number> { return 0; } // ---cut-before--- federation .setCollectionDispatcher( Loading Loading @@ -1651,6 +1657,10 @@ async function getBookmarkedPostsByUserId( ): Promise<{ posts: any[]; nextCursor: string | null }> { return { posts: [], nextCursor: null }; } async function getActorIdentifier(actorId: URL|null): Promise<string | null> { // Hypothetical function to get the identifier of an actor return ""; } // ---cut-before--- federation .setCollectionDispatcher( Loading Loading
docs/manual/collections.md +10 −0 Original line number Diff line number Diff line Loading @@ -1423,6 +1423,12 @@ async function getBookmarkedPostsByUserId( ): Promise<{ posts: BookmarkedPost[]; nextCursor: string | null }> { return { posts: [], nextCursor: null }; } /** * A hypothetical function that counts bookmarked posts for a user. */ async function getBookmarkCountByUserId(userId: string): Promise<number> { return 0; } // ---cut-before--- federation .setCollectionDispatcher( Loading Loading @@ -1651,6 +1657,10 @@ async function getBookmarkedPostsByUserId( ): Promise<{ posts: any[]; nextCursor: string | null }> { return { posts: [], nextCursor: null }; } async function getActorIdentifier(actorId: URL|null): Promise<string | null> { // Hypothetical function to get the identifier of an actor return ""; } // ---cut-before--- federation .setCollectionDispatcher( Loading