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

Function removeContent

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

Source from the content-addressed store, hash-verified

106 * Remove a post or a comment.
107 */
108export async function removeContent(contentId) {
109 const requestBody = {
110 contentId: contentId.toString()
111 };
112
113 await requestSuccessfulMutation(DELETE_CONTENT_API, requestBody, 'content deletion');
114}
115
116export async function addModifyPost(requestData, type) {
117 let API;

Callers 1

actionFunction · 0.90

Calls 1

Tested by

no test coverage detected