From e384fb4999e917dfb889379ecdc80126bfd5a1fb Mon Sep 17 00:00:00 2001 From: Cesare Naldi Date: Thu, 26 Dec 2024 08:34:30 +0100 Subject: [PATCH] fix: adds missing Post operation fields --- packages/graphql/src/fragments/post.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/graphql/src/fragments/post.ts b/packages/graphql/src/fragments/post.ts index 061a9e18c..224eed1ad 100644 --- a/packages/graphql/src/fragments/post.ts +++ b/packages/graphql/src/fragments/post.ts @@ -156,29 +156,35 @@ export const LoggedInPostOperationsFragment = graphql( `fragment LoggedInPostOperations on LoggedInPostOperations { __typename id - isNotInterested - hasBookmarked - hasReported - hasUpvoted: hasReacted(request: { type: UPVOTE }) - hasDownvoted: hasReacted(request: { type: DOWNVOTE }) canComment { ...OperationValidationOutcome } + canDelete { + ...OperationValidationOutcome + } + canEdit { + ...OperationValidationOutcome + } canQuote { ...OperationValidationOutcome } canRepost { ...OperationValidationOutcome } + hasBookmarked hasCommented { ...BooleanValue } hasQuoted { ...BooleanValue } + hasUpvoted: hasReacted(request: { type: UPVOTE }) + hasDownvoted: hasReacted(request: { type: DOWNVOTE }) + hasReported hasReposted { ...BooleanValue } + isNotInterested }`, [BooleanValueFragment, OperationValidationOutcomeFragment], );