diff options
| author | Adam Soltys <[email protected]> | 2023-01-06 21:22:39 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-06 21:22:39 -0800 |
| commit | 8bbcfc3534feceb5fb5756ba29613ab327e7ea5c (patch) | |
| tree | 14e74a44ea33b2b3bce8a7c0c569648d793ce391 /src/routes/(app) | |
| parent | 59c420d0d8ba3ff9e84128caf803f41e48566ea1 (diff) | |
| download | coinos-ui-8bbcfc3534feceb5fb5756ba29613ab327e7ea5c.tar.gz coinos-ui-8bbcfc3534feceb5fb5756ba29613ab327e7ea5c.zip | |
switch to uuid for images
Diffstat (limited to 'src/routes/(app)')
| -rw-r--r-- | src/routes/(app)/+layout.svelte | 2 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/settings/[...tab]/+page.svelte | 2 | ||||
| -rw-r--r-- | src/routes/(app)/[username]/settings/[...tab]/_account.svelte | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 7178917a..442eda5e 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -71,7 +71,7 @@ {/if} {#if subject?.profile} - <meta name="og:image" content={`/api/public/${subject.username}-profile.webp`} /> + <meta name="og:image" content={`/api/public/${subject.uuid}-profile.webp`} /> {:else} <meta property="og:image" content="/icons/logo.svg" /> {/if} diff --git a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte index 22fc3ca6..92946544 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/+page.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/+page.svelte @@ -78,7 +78,7 @@ content: JSON.stringify({ name: user.username, about: user.address, - picture: `${PUBLIC_COINOS_URL}/public/${user.username}-profile.webp` + picture: `${PUBLIC_COINOS_URL}/public/${user.uuid}-profile.webp` }), tags: [] }; diff --git a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte index 77e7ab73..ba046735 100644 --- a/src/routes/(app)/[username]/settings/[...tab]/_account.svelte +++ b/src/routes/(app)/[username]/settings/[...tab]/_account.svelte @@ -97,7 +97,7 @@ on:keydown={() => select('profile')} > <img - src={`/api/public/${user.username}-profile.webp`} + src={`/api/public/${user.uuid}-profile.webp`} class="absolute w-full h-full object-cover object-center visible overflow-hidden" alt={user.username} /> @@ -151,7 +151,7 @@ /> {:else if user.banner} <img - src={`/api/public/${user.username}-banner.webp`} + src={`/api/public/${user.uuid}-banner.webp`} class="w-full object-cover object-center visible overflow-hidden h-48 mb-4 hover:opacity-80" on:click={() => select('banner')} on:keydown={() => select('banner')} |
