MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / getPostThread

Function getPostThread

src/Data/PostData.js:66–79  ·  view source on GitHub ↗
(postId)

Source from the content-addressed store, hash-verified

64
65export async function getPost(postId) {
66 return (await getPostThread(postId)).post;
67}
68
69export async function getPostObject(postId) {
70 const post = await getPost(postId);
71 if (!post) {
72 throw new Error("Post not found");
73 }
74
75 return post;
76}
77
78/**
79 * Toggle like on a post or a comment.
80 */
81export async function toggleLikeContent(contentId) {
82 const requestBody = {

Callers 2

loaderFunction · 0.90
getPostFunction · 0.85

Calls 2

apiJsonFunction · 0.90
normalizePostContentFunction · 0.85

Tested by

no test coverage detected