fedimbed: fix null display names

This commit is contained in:
Cynthia Foxwell 2022-12-31 13:14:37 -07:00
parent a216e5b4fb
commit 7bb92e6897

View file

@ -196,7 +196,7 @@ async function processUrl(msg, url) {
postData2.text ??
postData2.content;
author = {
name: postData2.account?.display_name ?? postData2.user?.name,
name: postData2.account?.display_name postData2.account?.username ?? postData2.user?.name ?? postData2.user?.username,
handle:
postData2.account?.fqn ??
`${postData2.account?.username ?? postData2.user?.username}@${