fedimbed: forgot to readd file

This commit is contained in:
Cynthia Foxwell 2022-12-31 13:15:02 -07:00
parent 7bb92e6897
commit 21b4b613d2
1 changed files with 11 additions and 2 deletions

View File

@ -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}@${