Added AP to many network conditions / enabling inbox processing
This commit is contained in:
		
					parent
					
						
							
								7b45bdea17
							
						
					
				
			
			
				commit
				
					
						61e2c7d20d
					
				
			
		
					 14 changed files with 178 additions and 79 deletions
				
			
		| 
						 | 
				
			
			@ -32,6 +32,10 @@ class Inbox extends BaseModule
 | 
			
		|||
		$tempfile = tempnam(get_temppath(), $filename);
 | 
			
		||||
		file_put_contents($tempfile, json_encode(['header' => $_SERVER, 'body' => $postdata]));
 | 
			
		||||
 | 
			
		||||
		System::httpExit(200);
 | 
			
		||||
		logger('Incoming message stored under ' . $tempfile);
 | 
			
		||||
 | 
			
		||||
		ActivityPub::processInbox($postdata, $_SERVER);
 | 
			
		||||
 | 
			
		||||
		System::httpExit(202);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue