fix: show warning message for different page and user instance
This commit is contained in:
1 parent
a463562d0a
commit
45e0326668
1 file changed
+2
-1
@@ -18,6 +18,7 @@
|
|||||||
import type { CommentSortType } from 'lemmy-js-client'
|
import type { CommentSortType } from 'lemmy-js-client'
|
||||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||||
import { profile } from '$lib/auth.js'
|
import { profile } from '$lib/auth.js'
|
||||||
|
import { instance } from '$lib/instance.js'
|
||||||
|
|
||||||
export let data
|
export let data
|
||||||
|
|
||||||
@@ -68,7 +69,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#if $profile?.user && $page.params.instance.toLowerCase() != $profile.instance.toLowerCase()}
|
{#if $page.params.instance.toLowerCase() != $instance.toLowerCase()}
|
||||||
<Card cardColor="warning" class="p-4 flex flex-col gap-1">
|
<Card cardColor="warning" class="p-4 flex flex-col gap-1">
|
||||||
<Icon
|
<Icon
|
||||||
src={ExclamationTriangle}
|
src={ExclamationTriangle}
|
||||||
|
|||||||
Reference in new issue
Block a user