From 6494669262a85831800b797b7641c9ed9fe182d6 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 8 Sep 2017 13:15:17 -0300 Subject: [PATCH] Working for permalink --- .../client/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/plugins/talk-plugin-moderation-actions/client/index.js b/plugins/talk-plugin-moderation-actions/client/index.js index 014b26007..445c72271 100644 --- a/plugins/talk-plugin-moderation-actions/client/index.js +++ b/plugins/talk-plugin-moderation-actions/client/index.js @@ -16,6 +16,22 @@ export default { return prev; } + // Permalink view will retrieve only one comment. + if (prev.asset.comment) { + const updated = update(prev, { + asset: { + comment: { + status: { + $set: status + } + } + } + }); + + return updated; + } + + // Stream View const updated = update(prev, { asset: { comments: {