From d43447b3f9303cb873dfd0e2d98bd57df9674992 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Wed, 9 Aug 2023 10:53:45 -0700 Subject: [PATCH] misc: remove instane name in communities page --- package.json | 2 +- src/lib/components/lemmy/community/CommunityLink.svelte | 3 ++- src/routes/communities/+page.svelte | 6 +++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c5120b44..24a277aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "0.5.2", + "version": "0.5.3", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/components/lemmy/community/CommunityLink.svelte b/src/lib/components/lemmy/community/CommunityLink.svelte index ea0708bb..27d03daf 100644 --- a/src/lib/components/lemmy/community/CommunityLink.svelte +++ b/src/lib/components/lemmy/community/CommunityLink.svelte @@ -6,6 +6,7 @@ export let community: Community export let avatar: boolean = false export let avatarSize: number = 24 + export let showInstance: boolean | undefined = undefined function linkFromCommunity(community: Community) { const domain = new URL(community.actor_id).hostname @@ -27,7 +28,7 @@ {/if} - {#if $userSettings.showInstances.community} + {#if showInstance != undefined ? showInstance : $userSettings.showInstances.community} {community.title} @{new URL(community.actor_id).hostname} diff --git a/src/routes/communities/+page.svelte b/src/routes/communities/+page.svelte index e6efe10a..b8fca01f 100644 --- a/src/routes/communities/+page.svelte +++ b/src/routes/communities/+page.svelte @@ -77,7 +77,11 @@ - +