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

Function updateSourcePostModeration

packages/shared/src/graphql/posts.ts:1430–1439  ·  view source on GitHub ↗
(
  variables: Partial<UpdatePostModerationProps>,
)

Source from the content-addressed store, hash-verified

1428`;
1429
1430export const updateSourcePostModeration = async (
1431 variables: Partial<UpdatePostModerationProps>,
1432): Promise<SourcePostModeration> => {
1433 const res = await gqlClient.request(
1434 UPDATE_SOURCE_POST_MODERATION_MUTATION,
1435 variables,
1436 );
1437
1438 return res.updateSourcePostModeration;
1439};
1440
1441export const checkCanBoostByUser = (post: Post, userId: string) =>
1442 (post?.author?.id && post?.author?.id === userId) ||

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected