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

Function reportPost

packages/shared/src/hooks/useReportPost.ts:53–62  ·  view source on GitHub ↗
(params: ReportPostProps)

Source from the content-addressed store, hash-verified

51 });
52
53 const reportPost = async (params: ReportPostProps) => {
54 if (!user) {
55 showLogin({ trigger: AuthTriggers.ReportPost });
56 return { successful: false };
57 }
58
59 await reportPostAsync(params);
60
61 return { successful: true };
62 };
63
64 const hidePost = async (id: string) => {
65 if (!user) {

Callers 1

onReportPostFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected