From ff766cacb808c73c2e9c1b539c9cd0a132ee09f8 Mon Sep 17 00:00:00 2001 From: Mark Tomlinson Date: Tue, 11 Nov 2025 18:27:36 +1100 Subject: [PATCH] Link to public home of publication if not authed as publication creator --- components/Pages/PublicationMetadata.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/Pages/PublicationMetadata.tsx b/components/Pages/PublicationMetadata.tsx index 760ce9a0..e8e6dc87 100644 --- a/components/Pages/PublicationMetadata.tsx +++ b/components/Pages/PublicationMetadata.tsx @@ -13,9 +13,11 @@ import { import { useSubscribe } from "src/replicache/useSubscribe"; import { useEntitySetContext } from "components/EntitySetProvider"; import { timeAgo } from "src/utils/timeAgo"; +import { useIdentityData } from "components/IdentityProvider"; export const PublicationMetadata = () => { let { rep } = useReplicache(); let { data: pub } = useLeafletPublicationData(); + let { identity } = useIdentityData(); let title = useSubscribe(rep, (tx) => tx.get("publication_title")); let description = useSubscribe(rep, (tx) => tx.get("publication_description"), @@ -35,7 +37,11 @@ export const PublicationMetadata = () => {
{pub.publications?.name} -- 2.51.2