fedimbed: fix access before init
This commit is contained in:
		
							parent
							
								
									5d8153588f
								
							
						
					
					
						commit
						e611a7865e
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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, {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue