mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 16:32:15 +08:00
Add flag deleted with value "true" to comments of deleted users (#2952)
* [Fix] Add deleted as true to comments of deleted users * fix: revert deleted = true Co-authored-by: hector.melo <hector.melo@corp.globo.com> Co-authored-by: Wyatt Johnson <me@wyattjoh.ca> Co-authored-by: Wyatt Johnson <wyattjoh@gmail.com>
This commit is contained in:
@@ -54,6 +54,7 @@ export const Comment: GQLCommentTypeResolver<comment.Comment> = {
|
||||
: null,
|
||||
revisionHistory: (c) =>
|
||||
c.revisions.map((revision) => ({ revision, comment: c })),
|
||||
deleted: ({ deletedAt }) => !!deletedAt,
|
||||
editing: ({ revisions, createdAt }, input, ctx) => ({
|
||||
// When there is more than one body history, then the comment has been
|
||||
// edited.
|
||||
|
||||
@@ -2625,6 +2625,9 @@ type Comment {
|
||||
"""
|
||||
deleted: Boolean
|
||||
|
||||
"""
|
||||
site is the Site referenced by the Story for this Comment.
|
||||
"""
|
||||
site: Site!
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user