fix: crosspost problems/cleanup for instance hosts

This commit is contained in:
Xylight committed 2025-11-20 18:28:33 -08:00
1 parent b872db9eaf
commit 7c322310e9
4 files changed
+46 -44

No files matched your search

+1 -3
View File
@@ -23,9 +23,7 @@
let crosspost = $derived.by<PostFormInit>(() => {
const crosspostParam = page.url.searchParams.get('crosspost')
try {
return crosspostParam
? JSON.parse(atob(crosspostParam) || '{}')
: undefined
return crosspostParam ? JSON.parse(crosspostParam || '{}') : undefined
} catch {
return undefined
}