Skip to content

Commit

Permalink
fix: adds missing Post operation fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarenaldi committed Dec 26, 2024
1 parent 9827238 commit e384fb4
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/graphql/src/fragments/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
);
Expand Down

0 comments on commit e384fb4

Please sign in to comment.