From 77fe4baab5de7b4d11f7149b755f3a76576db22a Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Tue, 13 Aug 2019 15:23:54 +0300 Subject: [PATCH] Added signature filter for comments --- src/utils/postParser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/postParser.js b/src/utils/postParser.js index 33c8733e3..762a07044 100644 --- a/src/utils/postParser.js +++ b/src/utils/postParser.js @@ -115,6 +115,12 @@ export const parseComments = async (comments, currentUserName) => { const pArray = comments.map(async comment => { const activeVotes = await getActiveVotes(get(comment, 'author'), get(comment, 'permlink')); + if (comment.body.includes('Posted using [Partiko')) { + comment.body = comment.body + .split('\n') + .filter(item => item.includes('Posted using [Partiko') === false) + .join('\n'); + } comment.pending_payout_value = parseFloat( get(comment, 'pending_payout_value') ? get(comment, 'pending_payout_value') : 0, ).toFixed(3);