From 374cc262241d1c84655fd3400c1104062da4b6b8 Mon Sep 17 00:00:00 2001 From: keyan Date: Mon, 25 Sep 2023 16:47:24 -0500 Subject: [PATCH] indicate commenter is part of forwarded group --- components/comment.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/comment.js b/components/comment.js index e7b64e8f..3c90f814 100644 --- a/components/comment.js +++ b/components/comment.js @@ -131,6 +131,10 @@ export default function Comment ({ const bottomedOut = depth === COMMENT_DEPTH_LIMIT // Don't show OP badge when anon user comments on anon user posts const op = root.user.name === item.user.name && Number(item.user.id) !== ANON_USER_ID + ? 'OP' + : root.forwards.some(f => f.user.name === item.user.name) && Number(item.user.id) !== ANON_USER_ID + ? 'OPG' + : null const bountyPaid = root.bountyPaidTo?.includes(Number(item.id)) return ( @@ -151,7 +155,7 @@ export default function Comment ({ commentsText='replies' commentTextSingular='reply' className={`${itemStyles.other} ${styles.other}`} - embellishUser={op && <> OP} + embellishUser={op && <> {op}} extraInfo={ <> {includeParent && }