diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 6e40d52..012ab43 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -148,7 +148,12 @@ async function processUrl(msg, url) { } if (redirUrl) { - logger.verbose("fedimbed", `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify(options)}, ${JSON.stringify(headers)}`); + logger.verbose( + "fedimbed", + `Redirecting "${url}" to "${redirUrl}": ${JSON.stringify( + options + )}, ${JSON.stringify(headers)}` + ); const rawPostData2 = await fetch( redirUrl, Object.assign(options, { @@ -196,7 +201,11 @@ async function processUrl(msg, url) { postData2.text ?? postData2.content; author = { - name: postData2.account?.display_name postData2.account?.username ?? postData2.user?.name ?? postData2.user?.username, + name: + postData2.account?.display_name ?? + postData2.account?.username ?? + postData2.user?.name ?? + postData2.user?.username, handle: postData2.account?.fqn ?? `${postData2.account?.username ?? postData2.user?.username}@${