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

Function rejectSourceAuthorPendingPosts

packages/shared/src/graphql/squads.ts:1532–1548  ·  view source on GitHub ↗
({
  reason,
  note,
  ...args
}: SquadAuthorProps &
  Pick<SquadPostRejectionProps, 'reason' | 'note'>)

Source from the content-addressed store, hash-verified

1530`;
1531
1532export const rejectSourceAuthorPendingPosts = ({
1533 reason,
1534 note,
1535 ...args
1536}: SquadAuthorProps &
1537 Pick<SquadPostRejectionProps, 'reason' | 'note'>): Promise<
1538 SourcePostModeration[]
1539> =>
1540 gqlClient
1541 .request<{
1542 rejectSourceAuthorPendingPosts: SourcePostModeration[];
1543 }>(REJECT_SOURCE_AUTHOR_PENDING_POSTS_MUTATION, {
1544 ...args,
1545 rejectionReason: reason,
1546 moderatorMessage: note,
1547 })
1548 .then((res) => res.rejectSourceAuthorPendingPosts);
1549
1550export interface SourceMutedAuthor {
1551 user: UserShortProfile;

Callers 1

useSourceModerationListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected