diff --git a/src/lib/components/lemmy/community/CommunityLink.svelte b/src/lib/components/lemmy/community/CommunityLink.svelte index 27d03daf..8325fc8b 100644 --- a/src/lib/components/lemmy/community/CommunityLink.svelte +++ b/src/lib/components/lemmy/community/CommunityLink.svelte @@ -5,6 +5,7 @@ export let community: Community export let avatar: boolean = false + export let name: boolean = true export let avatarSize: number = 24 export let showInstance: boolean | undefined = undefined @@ -27,14 +28,16 @@ /> {/if} - - {#if showInstance != undefined ? showInstance : $userSettings.showInstances.community} - {community.title} - - @{new URL(community.actor_id).hostname} - - {:else} - {community.title} - {/if} - + {#if name} + + {#if showInstance != undefined ? showInstance : $userSettings.showInstances.community} + {community.title} + + @{new URL(community.actor_id).hostname} + + {:else} + {community.title} + {/if} + + {/if} diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 1e467753..4355e706 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -2,7 +2,7 @@ import { buildCommentsTreeAsync } from '$lib/components/lemmy/comment/comments.js' import Comments from '$lib/components/lemmy/comment/Comments.svelte' import { isImage, isVideo } from '$lib/ui/image.js' - import { getClient } from '$lib/lemmy.js' + import { getClient, getInstance } from '$lib/lemmy.js' import CommentForm from '$lib/components/lemmy/comment/CommentForm.svelte' import { onMount } from 'svelte' import Markdown from '$lib/components/markdown/Markdown.svelte' @@ -20,6 +20,9 @@ import { profile } from '$lib/auth.js' import { instance } from '$lib/instance.js' import { goto } from '$app/navigation' + import CommunityLink from '$lib/components/lemmy/community/CommunityLink.svelte' + import Link from '$lib/components/input/Link.svelte' + import SectionTitle from '$lib/components/ui/SectionTitle.svelte' export let data @@ -165,6 +168,34 @@ })} /> + {#if data.post.cross_posts?.length > 0} +