forgot to clean-up outbox logging as well.

This commit is contained in:
Yannis Vogel 2025-04-17 12:40:50 +02:00
parent f6d6c74bc6
commit 64ee4c518f
No known key found for this signature in database

View file

@ -97,11 +97,10 @@ class Outbox implements \Federator\Api\FedUsers\FedUsersInterface
$allHeaders = getallheaders();
try {
$result = $this->main->checkSignature($allHeaders);
error_log($result); // Signature verified
$this->main->checkSignature($allHeaders);
} catch (\Federator\Exceptions\PermissionDenied $e) {
error_log("Outbox::post Signature check failed: " . $e->getMessage());
http_response_code(403); // Or 401
http_response_code(401);
exit("Access denied");
}