diff --git a/.vscode/settings.json b/.vscode/settings.json
index e76e1688..5ece412e 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,5 +1,6 @@
{
"i18n-ally.localesPaths": ["src/lib/i18n"],
"i18n-ally.keystyle": "nested",
- "prettier.prettierPath": ""
+ "prettier.prettierPath": "",
+ "search.searchOnTypeDebouncePeriod": 0
}
diff --git a/src/lib/components/lemmy/post/PostActions.svelte b/src/lib/components/lemmy/post/PostActions.svelte
index fcc2c893..d0e83119 100644
--- a/src/lib/components/lemmy/post/PostActions.svelte
+++ b/src/lib/components/lemmy/post/PostActions.svelte
@@ -57,6 +57,7 @@
import RelativeDate, {
formatRelativeDate,
} from '$lib/components/util/RelativeDate.svelte'
+ import { instance } from '$lib/instance.svelte'
let editing = $state(false)
let saving = $state(false)
@@ -327,12 +328,12 @@
onclick={() => {
navigator.share?.({
url: localShare
- ? `${instanceToURL(profile.data.instance)}/post/${post.post.id}`
+ ? `${instanceToURL(instance.data)}/post/${post.post.id}`
: post.post.ap_id,
}) ??
navigator.clipboard.writeText(
localShare
- ? `${instanceToURL(profile.data.instance)}/post/${post.post.id}`
+ ? `${instanceToURL(instance.data)}/post/${post.post.id}`
: post.post.ap_id,
)
toast({ content: $t('toast.copied') })
diff --git a/src/lib/components/lemmy/post/PostMeta.svelte b/src/lib/components/lemmy/post/PostMeta.svelte
index dd13601f..1aeb59a6 100644
--- a/src/lib/components/lemmy/post/PostMeta.svelte
+++ b/src/lib/components/lemmy/post/PostMeta.svelte
@@ -69,6 +69,7 @@
import CommunityHeader from '../community/CommunityHeader.svelte'
import { publishedToDate } from '$lib/components/util/date'
import { profile } from '$lib/auth.svelte'
+ import { instance } from '$lib/instance.svelte'
interface Props {
community?: Community | undefined
@@ -303,7 +304,7 @@
{#if title && id}
-