Fix ActivityPub with Nextcloud
This commit is contained in:
parent
b6623216f0
commit
c485ca6f06
2 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ use Friendica\Protocol\ActivityPub;
|
||||||
use Friendica\Core\System;
|
use Friendica\Core\System;
|
||||||
use Friendica\Database\DBA;
|
use Friendica\Database\DBA;
|
||||||
use Friendica\Util\HTTPSignature;
|
use Friendica\Util\HTTPSignature;
|
||||||
|
use Friendica\Core\Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActivityPub Inbox
|
* ActivityPub Inbox
|
||||||
|
|
|
@ -204,6 +204,8 @@ class HTTPSignature
|
||||||
|
|
||||||
if (preg_match('/algorithm="(.*?)"/ism', $header, $matches)) {
|
if (preg_match('/algorithm="(.*?)"/ism', $header, $matches)) {
|
||||||
$ret['algorithm'] = $matches[1];
|
$ret['algorithm'] = $matches[1];
|
||||||
|
} else {
|
||||||
|
$ret['algorithm'] = 'rsa-sha256';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('/headers="(.*?)"/ism', $header, $matches)) {
|
if (preg_match('/headers="(.*?)"/ism', $header, $matches)) {
|
||||||
|
|
Loading…
Reference in a new issue