Added AP to many network conditions / enabling inbox processing

This commit is contained in:
Michael 2018-09-14 16:51:32 +00:00
parent 7b45bdea17
commit 61e2c7d20d
14 changed files with 178 additions and 79 deletions

View file

@ -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);
}
}