diff --git a/app/[leaflet_id]/actions/PublishButton.tsx b/app/[leaflet_id]/actions/PublishButton.tsx
index 4c2e8a29..f0140132 100644
--- a/app/[leaflet_id]/actions/PublishButton.tsx
+++ b/app/[leaflet_id]/actions/PublishButton.tsx
@@ -136,7 +136,9 @@ const UpdateButton = () => {
content: (
{pub.doc ? "Updated! " : "Published! "}
- link
+
+ See Published Post
+
),
type: "success",
diff --git a/app/lish/[did]/[publication]/[rkey]/CanvasPage.tsx b/app/lish/[did]/[publication]/[rkey]/CanvasPage.tsx
index 222b46fa..1ea95dcc 100644
--- a/app/lish/[did]/[publication]/[rkey]/CanvasPage.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/CanvasPage.tsx
@@ -217,6 +217,7 @@ const CanvasMetadata = (props: {
quotesCount={props.quotesCount || 0}
commentsCount={props.commentsCount || 0}
showComments={props.preferences.showComments}
+ showMentions={props.preferences.showMentions}
pageId={props.pageId}
/>
{!props.isSubpage && (
diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx
index 1f545f88..a612f7e7 100644
--- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx
@@ -108,6 +108,7 @@ export const Interactions = (props: {
commentsCount: number;
className?: string;
showComments?: boolean;
+ showMentions?: boolean;
pageId?: string;
}) => {
const data = useContext(PostPageContext);
@@ -131,7 +132,7 @@ export const Interactions = (props: {
{tagCount > 0 &&
}
- {props.quotesCount > 0 && (
+ {props.quotesCount === 0 || props.showMentions === false ? null : (
diff --git a/app/lish/[did]/[publication]/page.tsx b/app/lish/[did]/[publication]/page.tsx
index adbd5556..fbd496f3 100644
--- a/app/lish/[did]/[publication]/page.tsx
+++ b/app/lish/[did]/[publication]/page.tsx
@@ -167,6 +167,7 @@ export default async function Publication(props: {
tags={tags}
postUrl={`${getPublicationURL(publication)}/${uri.rkey}`}
showComments={record?.preferences?.showComments}
+ showMentions={record?.preferences?.showMentions}
/>
diff --git a/components/Canvas.tsx b/components/Canvas.tsx
index 6f5b1af8..3b3b5903 100644
--- a/components/Canvas.tsx
+++ b/components/Canvas.tsx
@@ -170,6 +170,7 @@ const CanvasMetadata = (props: { isSubpage: boolean | undefined }) => {
let pubRecord = pub.publications.record as PubLeafletPublication.Record;
let showComments = pubRecord.preferences?.showComments;
+ let showMentions = pubRecord.preferences?.showMentions;
return (
@@ -178,9 +179,11 @@ const CanvasMetadata = (props: { isSubpage: boolean | undefined }) => {
—
)}
-
- —
-
+ {showComments && (
+
+ —
+
+ )}
{!props.isSubpage && (
<>
diff --git a/components/InteractionsPreview.tsx b/components/InteractionsPreview.tsx
index a0cd1476..0a4f53b2 100644
--- a/components/InteractionsPreview.tsx
+++ b/components/InteractionsPreview.tsx
@@ -14,11 +14,13 @@ export const InteractionPreview = (props: {
tags?: string[];
postUrl: string;
showComments: boolean | undefined;
+ showMentions: boolean | undefined;
+
share?: boolean;
}) => {
let smoker = useSmoker();
let interactionsAvailable =
- props.quotesCount > 0 ||
+ (props.quotesCount > 0 && props.showMentions !== false) ||
(props.showComments !== false && props.commentsCount > 0);
const tagsCount = props.tags?.length || 0;
@@ -36,7 +38,7 @@ export const InteractionPreview = (props: {
>
)}
- {props.quotesCount === 0 ? null : (
+ {props.showMentions === false || props.quotesCount === 0 ? null : (
{
>
)}
-
- —
-
+ {pubRecord?.preferences?.showMentions && (
+
+ —
+
+ )}
{pubRecord?.preferences?.showComments && (
—
diff --git a/components/PostListing.tsx b/components/PostListing.tsx
index 417357ad..4e0eff39 100644
--- a/components/PostListing.tsx
+++ b/components/PostListing.tsx
@@ -97,6 +97,7 @@ export const PostListing = (props: Post) => {
commentsCount={comments}
tags={tags}
showComments={pubRecord?.preferences?.showComments}
+ showMentions={pubRecord?.preferences?.showMentions}
share
/>