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

Function updateSourcePostModeration

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected