diff --git a/app/lish/[did]/[publication]/PublicationPostItem.tsx b/app/lish/[did]/[publication]/PublicationPostItem.tsx index 99f3d846..6c9d5975 100644 --- a/app/lish/[did]/[publication]/PublicationPostItem.tsx +++ b/app/lish/[did]/[publication]/PublicationPostItem.tsx @@ -100,7 +100,7 @@ export function PublicationPostItemMedium(props: MediumProps) { return ( <>
-
+
{props.title && (

{props.title}

diff --git a/components/Blocks/StandardSitePostBlock/StandardSitePostItem.tsx b/components/Blocks/StandardSitePostBlock/StandardSitePostItem.tsx index a8ccd2cc..c59c3b5f 100644 --- a/components/Blocks/StandardSitePostBlock/StandardSitePostItem.tsx +++ b/components/Blocks/StandardSitePostBlock/StandardSitePostItem.tsx @@ -11,6 +11,7 @@ import { getFirstParagraph } from "src/utils/getFirstParagraph"; import { blobRefToSrc } from "src/utils/blobRefToSrc"; import { useStandardSitePost } from "components/StandardSitePostDataProvider"; import { useEntity, useReplicache } from "src/replicache"; +import { InteractionPreview } from "components/InteractionsPreview"; import type { StandardSitePostData } from "app/api/rpc/[command]/get_standard_site_posts"; export type StandardSitePostSize = "large" | "medium" | "small"; @@ -149,11 +150,32 @@ export function StandardSitePostItemView({ const { rootEntity } = useReplicache(); const pageWidth = useEntity(rootEntity, "theme/page-width")?.data.value; + const publicationPrefs = post.publication?.record?.preferences; + const showComments = publicationPrefs?.showComments !== false; + const showMentions = publicationPrefs?.showMentions !== false; + const showRecommends = publicationPrefs?.showRecommends !== false; + const commentsCount = showComments ? post.commentsCount : 0; + + const interactions = ( + + ); + const commonProps = { href: docUrl, title: post.record.title, author: authorLabel, date, + interactions, }; if (size === "large") {