diff --git a/client/coral-embed-stream/src/components/Comment.js b/client/coral-embed-stream/src/components/Comment.js index 4f95b06fd..68eaf50cc 100644 --- a/client/coral-embed-stream/src/components/Comment.js +++ b/client/coral-embed-stream/src/components/Comment.js @@ -342,8 +342,6 @@ export default class Comment extends React.Component { commentClassNames = [] } = this.props; - console.log('STATUS', comment.status); - if (this.commentIsRejected(comment)) { return ; } diff --git a/plugins/talk-plugin-featured-comments/client/index.js b/plugins/talk-plugin-featured-comments/client/index.js index 1fa78ba24..e451ad830 100644 --- a/plugins/talk-plugin-featured-comments/client/index.js +++ b/plugins/talk-plugin-featured-comments/client/index.js @@ -58,6 +58,17 @@ export default { const updated = update(previous, { asset: { + comments: { + nodes: { + $apply: (nodes) => nodes.map((node) => { + if (node.id === variables.id) { + node.status = 'ACCEPTED'; + } + + return node; + }) + } + }, featuredComments: { nodes: { $apply: (nodes) => prependNewNodes(nodes, [comment]),