fix: add a User-Agent

This commit is contained in:
James Xylight committed 2025-07-15 11:59:22 -07:00
1 parent 6389ec06a2
commit 9094dd7758
2 files changed
+2 -1

No files matched your search

@@ -27,7 +27,7 @@
class="container mx-auto z-10 rounded-xl max-h-[60vh] relative overflow-hidden bg-slate-100 dark:bg-zinc-900"
data-sveltekit-preload-data="off"
aria-label={post.name}
onclick={() => showImage(bestImageURL(post, false, -1))}
onclick={() => showImage(bestImageURL(post, false, -1, null))}
role="button"
tabindex="0"
>
+1
View File
@@ -34,6 +34,7 @@ async function customFetch(
if (init) {
init.headers = {
...init.headers,
'User-Agent': `Photon/${__VERSION__}`,
...(auth ? { authorization: `Bearer ${auth}` } : {}),
}