MCPcopy Create free account
hub / github.com/dailydotdev/apps / hidePost

Function hidePost

packages/shared/src/hooks/useReportPost.ts:64–73  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

62 };
63
64 const hidePost = async (id: string) => {
65 if (!user) {
66 showLogin({ trigger: AuthTriggers.HidePost });
67 return { successful: false };
68 }
69
70 await hidePostAsync(id);
71
72 return { successful: true };
73 };
74
75 const unhidePost = async (id: string) => {
76 if (!user) {

Callers 1

useHidePostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected