diff options
| author | Adam Soltys <[email protected]> | 2022-11-01 09:36:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-11-01 09:36:32 -0700 |
| commit | 743bbc9f065c0e5164226f629b5481a25dbc1216 (patch) | |
| tree | 159b78767b891bcde1fcd21138669f1b1e8fb889 /src | |
| parent | 2f80ad462c7b5d6ef7512f9c672e1942430b818a (diff) | |
| download | coinos-ui-743bbc9f065c0e5164226f629b5481a25dbc1216.tar.gz coinos-ui-743bbc9f065c0e5164226f629b5481a25dbc1216.zip | |
check for profile image
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/[username]/+page.svelte | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/routes/[username]/+page.svelte b/src/routes/[username]/+page.svelte index 9c967b5f..2860f66f 100644 --- a/src/routes/[username]/+page.svelte +++ b/src/routes/[username]/+page.svelte @@ -36,11 +36,13 @@ let followed = false; </script> - <svelte:head> - <title>coinos - {subject.username}</title> - <meta name="lightning" content={`lnurlp:${subject.username}@coinos.io`} /> - <meta name="og:image" content={`/api/public/${subject.username}-profile.webp`} /> + <title>coinos - {subject.username}</title> + <meta name="lightning" content={`lnurlp:${subject.username}@coinos.io`} /> + + {#if subject.profile} + <meta name="og:image" content={`/api/public/${subject.username}-profile.webp`} /> + {/if} </svelte:head> <div class="container px-4 flex flex-wrap"> |
