fedimbed: fix access before init

This commit is contained in:
Cynthia Foxwell 2023-07-27 21:14:14 -06:00
parent 5d8153588f
commit e611a7865e
1 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,8 @@ async function processUrl(msg, url, spoiler = false) {
let content, cw, author, timestamp;
// Fetch post
let rawPostData = await signedFetch(url, {
let rawPostData;
rawPostData = await signedFetch(url, {
headers: {
"User-Agent": FRIENDLY_USERAGENT,
Accept: "application/activity+json",
@ -207,7 +208,8 @@ async function processUrl(msg, url, spoiler = false) {
options
)}, ${JSON.stringify(headers)}`
);
let rawPostData2 = await signedFetch(
let rawPostData2;
rawPostData2 = await signedFetch(
redirUrl,
Object.assign(options, {
headers: Object.assign(headers, {