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

Function rejectSourceAuthorPendingPosts

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

Source from the content-addressed store, hash-verified

1549`;
1550
1551export const rejectSourceAuthorPendingPosts = ({
1552 reason,
1553 note,
1554 ...args
1555}: SquadAuthorProps &
1556 Pick<SquadPostRejectionProps, 'reason' | 'note'>): Promise<
1557 SourcePostModeration[]
1558> =>
1559 gqlClient
1560 .request<{
1561 rejectSourceAuthorPendingPosts: SourcePostModeration[];
1562 }>(REJECT_SOURCE_AUTHOR_PENDING_POSTS_MUTATION, {
1563 ...args,
1564 rejectionReason: reason,
1565 moderatorMessage: note,
1566 })
1567 .then((res) => res.rejectSourceAuthorPendingPosts);
1568
1569export interface SourceMutedAuthor {
1570 user: UserShortProfile;

Callers 1

useSourceModerationListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected