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

Function rejectSourceAuthorPendingPosts

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

Source from the content-addressed store, hash-verified

1560`;
1561
1562export const rejectSourceAuthorPendingPosts = ({
1563 reason,
1564 note,
1565 ...args
1566}: SquadAuthorProps &
1567 Pick<SquadPostRejectionProps, 'reason' | 'note'>): Promise<
1568 SourcePostModeration[]
1569> =>
1570 gqlClient
1571 .request<{
1572 rejectSourceAuthorPendingPosts: SourcePostModeration[];
1573 }>(REJECT_SOURCE_AUTHOR_PENDING_POSTS_MUTATION, {
1574 ...args,
1575 rejectionReason: reason,
1576 moderatorMessage: note,
1577 })
1578 .then((res) => res.rejectSourceAuthorPendingPosts);
1579
1580export interface SourceMutedAuthor {
1581 user: UserShortProfile;

Callers 1

useSourceModerationListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected