From 1b227117767bc7d71f1cebf7d9d2e1359f788b49 Mon Sep 17 00:00:00 2001 From: plebeius Date: Sat, 6 Dec 2025 16:19:30 +0100 Subject: [PATCH] fix(post-menu): add copy link and hide block board for /all description --- .../post-desktop/post-menu-desktop/post-menu-desktop.tsx | 2 +- .../subplebbit-description/subplebbit-description.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/post-desktop/post-menu-desktop/post-menu-desktop.tsx b/src/components/post-desktop/post-menu-desktop/post-menu-desktop.tsx index 476a57c4..d916d011 100644 --- a/src/components/post-desktop/post-menu-desktop/post-menu-desktop.tsx +++ b/src/components/post-desktop/post-menu-desktop/post-menu-desktop.tsx @@ -175,7 +175,7 @@ const PostMenuDesktop = ({ postMenu }: PostMenuDesktopProps) => { )} {link && isValidURL(link) && (type === 'image' || type === 'gif' || thumbnail) && url && } {!isDescription && !isRules && authorAddress && } - {(isInAllView || isInSubscriptionsView) && subplebbitAddress && } + {!isDescription && !isRules && (isInAllView || isInSubscriptionsView) && subplebbitAddress && } , document.body, diff --git a/src/components/subplebbit-description/subplebbit-description.tsx b/src/components/subplebbit-description/subplebbit-description.tsx index 041d86eb..046d25b0 100644 --- a/src/components/subplebbit-description/subplebbit-description.tsx +++ b/src/components/subplebbit-description/subplebbit-description.tsx @@ -20,10 +20,11 @@ const SubplebbitDescription = ({ avatarUrl, createdAt, description, replyCount, const location = useLocation(); const isInAllView = isAllView(location.pathname); const multisubMetadata = useMultisubMetadata(); + const descriptionSubplebbitAddress = isInAllView ? 'all' : subplebbitAddress; const post = { isDescription: true, - subplebbitAddress, + subplebbitAddress: descriptionSubplebbitAddress, timestamp: isInAllView ? multisubMetadata?.createdAt : createdAt, author: { displayName: _.capitalize(t('anonymous')) }, content: isInAllView ? multisubMetadata?.description : description,