({
reason,
note,
...args
}: SquadAuthorProps &
Pick<SquadPostRejectionProps, 'reason' | 'note'>)
| 1560 | `; |
| 1561 | |
| 1562 | export 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 | |
| 1580 | export interface SourceMutedAuthor { |
| 1581 | user: UserShortProfile; |
no outgoing calls
no test coverage detected