({
reason,
note,
...args
}: SquadAuthorProps &
Pick<SquadPostRejectionProps, 'reason' | 'note'>)
| 1530 | `; |
| 1531 | |
| 1532 | export 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 | |
| 1550 | export interface SourceMutedAuthor { |
| 1551 | user: UserShortProfile; |
no outgoing calls
no test coverage detected