mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
[CORL-130] Handle non-visible comment status (#2213)
* feat: support blue color in message * feat: Show message when comment is in review * feat: handle non-visible comment status * test: add feature test for handling invisible comment status * fix: apply review * chore: better comment :-) * Update isVisible.ts
This commit is contained in:
@@ -14,5 +14,6 @@ export const Story: GQLStoryTypeResolver<story.Story> = {
|
||||
closedAt: (s, input, ctx) => getStoryClosedAt(ctx.tenant, s),
|
||||
commentActionCounts: s => decodeActionCounts(s.commentCounts.action),
|
||||
commentCounts: s => s.commentCounts.status,
|
||||
moderation: (s, input, ctx) => ctx.tenant.moderation,
|
||||
moderationQueues: storyModerationInputResolver,
|
||||
};
|
||||
|
||||
@@ -1581,6 +1581,11 @@ type Story {
|
||||
createdAt is the date that the Story was created at.
|
||||
"""
|
||||
createdAt: Time!
|
||||
|
||||
"""
|
||||
moderation determines whether or not this is a PRE or POST moderated story.
|
||||
"""
|
||||
moderation: MODERATION_MODE!
|
||||
}
|
||||
|
||||
################################################################################
|
||||
@@ -1697,7 +1702,7 @@ type CreateCommentPayload {
|
||||
"""
|
||||
edge is the possibly created comment edge.
|
||||
"""
|
||||
edge: CommentEdge
|
||||
edge: CommentEdge!
|
||||
|
||||
"""
|
||||
clientMutationId is required for Relay support.
|
||||
@@ -1747,7 +1752,7 @@ type CreateCommentReplyPayload {
|
||||
"""
|
||||
edge is the possibly created comment edge.
|
||||
"""
|
||||
edge: CommentEdge
|
||||
edge: CommentEdge!
|
||||
|
||||
"""
|
||||
clientMutationId is required for Relay support.
|
||||
@@ -1787,7 +1792,7 @@ type EditCommentPayload {
|
||||
"""
|
||||
comment is the possibly edited comment.
|
||||
"""
|
||||
comment: Comment
|
||||
comment: Comment!
|
||||
|
||||
"""
|
||||
clientMutationId is required for Relay support.
|
||||
|
||||
Reference in New Issue
Block a user