This commit is contained in:
Xyphyn committed 2023-07-27 11:30:56 -07:00
1 parent ed42b70537
commit b0e9e898f1
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@ import { authData, getClient } from '$lib/lemmy.js'
import { get } from 'svelte/store'
export async function load({ params }) {
const post = await getClient(params.instance).getPost({
const post = await getClient(params.instance.toLowerCase()).getPost({
id: Number(params.id),
auth: get(authData)?.token,
})
@@ -10,7 +10,7 @@ export async function load({ params }) {
return {
post: post,
streamed: {
comments: getClient(params.instance).getComments({
comments: getClient(params.instance.toLowerCase()).getComments({
post_id: Number(params.id),
type_: 'All',
limit: 25,