Coves frontend - a photon fork

fix: wrap profile errors in errorMessage

Xylight 69c2ea90 b8e68bfd

+2 -3
-2
.github/README.md
··· 8 8 <img src="https://github.com/user-attachments/assets/11cf24c2-fd4f-480a-8a16-41f0f0a5b245"> 9 9 </picture> 10 10 11 - 12 11 # Photon 13 12 14 13 Photon is a web app for the fediverse with helpful features and a nice UX. ··· 90 89 If you're hosting Photon for a Lemmy instance, you'll almost definitely want to set these: 91 90 92 91 - `PUBLIC_INSTANCE_URL` `string`: The domain which **the browser** will send API requests to. 93 - 94 92 - Example: `PUBLIC_INSTANCE_URL=fedi.phtn.app` 95 93 96 94 - `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
··· 5 5 import type { Community, GetSiteResponse, MyUserInfo } from '$lib/api/types' 6 6 import { publishedToDate } from '$lib/ui/util/date' 7 7 import { toast } from 'mono-svelte' 8 + import { errorMessage } from './error' 8 9 import { t } from './i18n' 9 10 import { DEFAULT_INSTANCE_URL } from './instance.svelte' 10 11 import { instanceToURL, moveItem } from './util.svelte' ··· 228 229 return user 229 230 } catch (err) { 230 231 toast({ 231 - content: err as string, 232 + content: errorMessage(err as string), 232 233 type: 'error', 233 234 }) 234 235 return null