mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Render status account from pubkey
This commit is contained in:
parent
31114b6094
commit
ef96fa539a
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue