mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 02:43:46 +08:00
Merge pull request #834 from coralproject/update-my-comments
Update my comments after posting
This commit is contained in:
@@ -73,6 +73,11 @@ const extension = {
|
||||
created_at
|
||||
status
|
||||
replyCount
|
||||
asset {
|
||||
id
|
||||
title
|
||||
url
|
||||
}
|
||||
tags {
|
||||
tag {
|
||||
name
|
||||
@@ -190,6 +195,15 @@ const extension = {
|
||||
}
|
||||
return insertCommentIntoEmbedQuery(prev, comment);
|
||||
},
|
||||
CoralEmbedStream_Profile: (prev, {mutationResult: {data: {createComment: {comment}}}}) => {
|
||||
return update(prev, {
|
||||
me: {
|
||||
comments: {
|
||||
nodes: {$unshift: [comment]},
|
||||
},
|
||||
},
|
||||
});
|
||||
},
|
||||
}
|
||||
}),
|
||||
EditComment: () => ({
|
||||
|
||||
Reference in New Issue
Block a user