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 * Toggle like on a post or a comment.
96 */
97export async function toggleLikeContent(contentId) {
98 const requestBody = {
99 contentId: contentId.toString()
100 };
101
102 await requestSuccessfulMutation(TOGGLE_LIKE_API, requestBody, 'toggling content like');
103}
104
105/**
106 * Remove a post or a comment.

Callers 1

actionFunction · 0.90

Calls 1

Tested by

no test coverage detected