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

Function toggleLikeContent

src/Data/PostData.js:97–103  ·  view source on GitHub ↗
(contentId)

Source from the content-addressed store, hash-verified

95 };
96
97 await requestSuccessfulMutation(DELETE_CONTENT_API, requestBody, 'content deletion');
98}
99
100export async function addModifyPost(requestData, type) {
101 let API;
102 let requestBody;
103 const title = requestData.content.Title?.toString().trim() ?? "";
104 if (!title) {
105 throw new Error("Post title is required.");
106 }

Callers 1

actionFunction · 0.90

Calls 1

Tested by

no test coverage detected