forked from coracle/flotilla
Use new ALIAS kind
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
import ModalFooter from "@lib/components/ModalFooter.svelte"
|
||||
import ProfileInfo from "@app/components/ProfileInfo.svelte"
|
||||
import ChatEnable from "@app/components/ChatEnable.svelte"
|
||||
import {canDecrypt, pubkeyLink, deriveAlias, deriveAliasDisplay} from "@app/state"
|
||||
import {canDecrypt, pubkeyLink, deriveAliasedProfile, deriveAliasDisplay} from "@app/state"
|
||||
import {pushModal} from "@app/modal"
|
||||
import {makeChatPath} from "@app/routes"
|
||||
|
||||
@@ -27,8 +27,8 @@
|
||||
|
||||
const {pubkey, url}: Props = $props()
|
||||
|
||||
const alias = deriveAlias(pubkey, url)
|
||||
const aliasDisplay = deriveAliasDisplay(pubkey, url)
|
||||
const profile = deriveAliasedProfile(pubkey, url)
|
||||
const display = deriveAliasDisplay(pubkey, url)
|
||||
const handle = deriveHandleForPubkey(pubkey)
|
||||
const score = deriveUserWotScore(pubkey)
|
||||
|
||||
@@ -46,12 +46,12 @@
|
||||
<div class="column gap-4">
|
||||
<div class="flex max-w-full gap-3">
|
||||
<span class="py-1">
|
||||
<Avatar src={$alias?.profile?.picture} size={10} />
|
||||
<Avatar src={$profile?.picture} size={10} />
|
||||
</span>
|
||||
<div class="flex min-w-0 flex-col">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="text-bold overflow-hidden text-ellipsis">
|
||||
{$aliasDisplay}
|
||||
{$display}
|
||||
</span>
|
||||
<WotScore score={$score} active={following} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user