From 21b4b613d21c571bf28040b37ce51f6dd5f4ea99 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Sat, 31 Dec 2022 13:15:02 -0700 Subject: [PATCH] fedimbed: forgot to readd file --- src/modules/fedimbed.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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}@${