···88 <img src="https://github.com/user-attachments/assets/11cf24c2-fd4f-480a-8a16-41f0f0a5b245">
99</picture>
10101111-1211# Photon
13121413Photon is a web app for the fediverse with helpful features and a nice UX.
···9089If you're hosting Photon for a Lemmy instance, you'll almost definitely want to set these:
91909291- `PUBLIC_INSTANCE_URL` `string`: The domain which **the browser** will send API requests to.
9393-9492 - Example: `PUBLIC_INSTANCE_URL=fedi.phtn.app`
95939694- `PUBLIC_INSTANCE_TYPE` `lemmyv3 | piefedalpha` (default: `lemmyv3`): If your instance is running PieFed, you must set this option to `piefedalpha`. Otherwise, you don't need to do anything.
+2-1
src/lib/app/auth.svelte.ts
···55import type { Community, GetSiteResponse, MyUserInfo } from '$lib/api/types'
66import { publishedToDate } from '$lib/ui/util/date'
77import { toast } from 'mono-svelte'
88+import { errorMessage } from './error'
89import { t } from './i18n'
910import { DEFAULT_INSTANCE_URL } from './instance.svelte'
1011import { instanceToURL, moveItem } from './util.svelte'
···228229 return user
229230 } catch (err) {
230231 toast({
231231- content: err as string,
232232+ content: errorMessage(err as string),
232233 type: 'error',
233234 })
234235 return null