From 22e4f8acf585844bdf4ae28a6e88d01f8c221132 Mon Sep 17 00:00:00 2001 From: soxa <6390896+Soxasora@users.noreply.github.com> Date: Tue, 15 Apr 2025 21:57:01 +0200 Subject: [PATCH] show sats on full view pinned comments (#2071) * show sats on full view pinned comments; simplify conditions; pass topLevel as full status for comments * comment view: show Pin instead of Boost also for own items --------- Co-authored-by: Keyan <34140557+huumn@users.noreply.github.com> --- components/comment.js | 13 ++++++++----- components/item-info.js | 5 ++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/components/comment.js b/components/comment.js index 67b4bc84..73e64d0c 100644 --- a/components/comment.js +++ b/components/comment.js @@ -165,11 +165,13 @@ export default function Comment ({
{item.outlawed && !me?.privates?.wildWestMode ? - : item.mine - ? - : item.meDontLikeSats > item.meSats - ? - : pin ? : } + : pin + ? + : item.mine + ? + : item.meDontLikeSats > item.meSats + ? + : }
{item.user?.meMute && !includeParent && collapse === 'yep' @@ -182,6 +184,7 @@ export default function Comment ({ >reply from someone you muted ) : - {!(item.position && (pinnable || !item.subName)) && !(!item.parentId && Number(item.user?.id) === USER_ID.ad) && + {!isPinnedPost && !(isPinnedSubReply && !full) && !isAd && <> {numWithUnits(item.sats)}