Render status account from pubkey
This commit is contained in:
parent
31114b6094
commit
ef96fa539a
|
@ -117,8 +117,7 @@ async function toMention(pubkey: string) {
|
||||||
|
|
||||||
async function toStatus(event: Event<1>, viewerPubkey?: string) {
|
async function toStatus(event: Event<1>, viewerPubkey?: string) {
|
||||||
const profile = await getAuthor(event.pubkey);
|
const profile = await getAuthor(event.pubkey);
|
||||||
const account = profile ? await toAccount(profile) : undefined;
|
const account = profile ? await toAccount(profile) : await accountFromPubkey(event.pubkey);
|
||||||
if (!account) return;
|
|
||||||
|
|
||||||
const replyTag = findReplyTag(event);
|
const replyTag = findReplyTag(event);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue