]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Inbox.php
Merge pull request #12227 from matthiasmoritz/public_calendar
[friendica.git] / src / Module / ActivityPub / Inbox.php
index b16eb9fd403b1a8d95022130148ecaed3a724585..a9858d94c8d2f77bb1f513708f121db8d421f654 100644 (file)
@@ -50,7 +50,7 @@ class Inbox extends BaseModule
                                $filename = 'failed-activitypub';
                        }
                        $tempfile = tempnam(System::getTempPath(), $filename);
-                       file_put_contents($tempfile, json_encode(['parameters' => $this->parameters, 'header' => $_SERVER, 'body' => $postdata], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE));
+                       file_put_contents($tempfile, json_encode(['parameters' => $this->parameters, 'header' => $_SERVER, 'body' => $postdata], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));
                        Logger::notice('Incoming message stored', ['file' => $tempfile]);
                }