feat: show crossposts
This commit is contained in:
1 parent
a6ca698625
commit
a971e04bed
2 files changed
+45
-11
No files matched your search
@@ -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}
|
||||
|
||||
<span class="flex gap-0">
|
||||
{#if showInstance != undefined ? showInstance : $userSettings.showInstances.community}
|
||||
{community.title}
|
||||
<span class="text-slate-500 dark:text-zinc-500 font-normal">
|
||||
@{new URL(community.actor_id).hostname}
|
||||
</span>
|
||||
{:else}
|
||||
{community.title}
|
||||
{/if}
|
||||
</span>
|
||||
{#if name}
|
||||
<span class="flex gap-0">
|
||||
{#if showInstance != undefined ? showInstance : $userSettings.showInstances.community}
|
||||
{community.title}
|
||||
<span class="text-slate-500 dark:text-zinc-500 font-normal">
|
||||
@{new URL(community.actor_id).hostname}
|
||||
</span>
|
||||
{:else}
|
||||
{community.title}
|
||||
{/if}
|
||||
</span>
|
||||
{/if}
|
||||
</a>
|
||||
Reference in new issue
Block a user