auth: rename profile.data -> profile.current

This commit is contained in:
James Xylight committed 2025-07-12 10:26:45 -07:00
1 parent 1edad4ac60
commit 36a9631707
76 files changed
+233 -224

No files matched your search

+3 -3
View File
@@ -4,11 +4,11 @@ import { client } from '$lib/lemmy.svelte.js'
import { redirect } from '@sveltejs/kit'
export async function load({ params, fetch }) {
if (profile.data.instance != params.instance)
if (profile.current.instance != params.instance)
redirect(302, resolveRoute('/comment/[instance]/[id]/confirm', params))
const comment = await client({
instanceURL: profile.data.instance,
instanceURL: profile.current.instance,
func: fetch,
}).getComment({
id: Number(params.id),
@@ -16,6 +16,6 @@ export async function load({ params, fetch }) {
redirect(
302,
`/post/${profile.data.instance}/${comment.comment_view.post.id}?thread=${comment.comment_view.comment.path}#${comment.comment_view.comment.id}`,
`/post/${profile.current.instance}/${comment.comment_view.post.id}?thread=${comment.comment_view.comment.path}#${comment.comment_view.comment.id}`,
)
}