fedimbed: fix access before init
This commit is contained in:
parent
5d8153588f
commit
e611a7865e
|
@ -115,7 +115,8 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
let content, cw, author, timestamp;
|
let content, cw, author, timestamp;
|
||||||
|
|
||||||
// Fetch post
|
// Fetch post
|
||||||
let rawPostData = await signedFetch(url, {
|
let rawPostData;
|
||||||
|
rawPostData = await signedFetch(url, {
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": FRIENDLY_USERAGENT,
|
"User-Agent": FRIENDLY_USERAGENT,
|
||||||
Accept: "application/activity+json",
|
Accept: "application/activity+json",
|
||||||
|
@ -207,7 +208,8 @@ async function processUrl(msg, url, spoiler = false) {
|
||||||
options
|
options
|
||||||
)}, ${JSON.stringify(headers)}`
|
)}, ${JSON.stringify(headers)}`
|
||||||
);
|
);
|
||||||
let rawPostData2 = await signedFetch(
|
let rawPostData2;
|
||||||
|
rawPostData2 = await signedFetch(
|
||||||
redirUrl,
|
redirUrl,
|
||||||
Object.assign(options, {
|
Object.assign(options, {
|
||||||
headers: Object.assign(headers, {
|
headers: Object.assign(headers, {
|
||||||
|
|
Loading…
Reference in New Issue