MCPcopy Create free account
hub / github.com/block/buzz / getForumPosts

Function getForumPosts

desktop/src/shared/api/forum.ts:99–116  ·  view source on GitHub ↗
(
  channelId: string,
  limit?: number,
  before?: number,
)

Source from the content-addressed store, hash-verified

97}
98
99export async function getForumPosts(
100 channelId: string,
101 limit?: number,
102 before?: number,
103): Promise<ForumPostsResponse> {
104 const response = await invokeTauri<RawForumPostsResponse>("get_forum_posts", {
105 channelId,
106 limit: limit ?? null,
107 before: before ?? null,
108 });
109
110 return {
111 posts: response.messages
112 .filter((m) => m.kind === KIND_FORUM_POST)
113 .map(fromRawForumPost),
114 nextCursor: response.next_cursor,
115 };
116}
117
118export async function getForumThread(
119 channelId: string,

Callers 1

useForumPostsQueryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected