mirror of
https://github.com/friendica/friendica
synced 2025-04-25 01:10:12 +00:00
Some changes for better code quality
This commit is contained in:
parent
b043c7e0f2
commit
82987d018a
7 changed files with 17 additions and 23 deletions
|
@ -29,10 +29,10 @@ class Outbox extends BaseModule
|
|||
|
||||
$page = defaults($_REQUEST, 'page', null);
|
||||
|
||||
$Outbox = ActivityPub::getOutbox($owner, $page);
|
||||
$outbox = ActivityPub::getOutbox($owner, $page);
|
||||
|
||||
header('Content-Type: application/activity+json');
|
||||
echo json_encode($Outbox);
|
||||
echo json_encode($outbox);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ class Owa extends BaseModule
|
|||
if (DBA::isResult($contact)) {
|
||||
// Try to verify the signed header with the public key of the contact record
|
||||
// we have found.
|
||||
$verified = HTTPSignature:verifyMagic($contact['pubkey']);
|
||||
$verified = HTTPSignature::verifyMagic($contact['pubkey']);
|
||||
|
||||
if ($verified && $verified['header_signed'] && $verified['header_valid']) {
|
||||
logger('OWA header: ' . print_r($verified, true), LOGGER_DATA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue