Use new ALIAS kind

This commit is contained in:
Jon Staab
2025-04-15 15:45:48 -07:00
parent 374ca7f265
commit f3debe6c02
12 changed files with 67 additions and 87 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import Content from "@app/components/Content.svelte"
import {deriveAlias} from "@app/state"
import {deriveAliasedProfile} from "@app/state"
export type Props = {
pubkey: string
@@ -9,9 +9,9 @@
const {pubkey, url}: Props = $props()
const alias = deriveAlias(pubkey, url)
const profile = deriveAliasedProfile(pubkey, url)
</script>
{#if $alias?.profile}
<Content event={{content: $alias.profile.about, tags: []}} hideMediaAtDepth={0} />
{#if $profile}
<Content event={{content: $profile.about, tags: []}} hideMediaAtDepth={0} />
{/if}