From c485ca6f06363192ff4d9302d82f9813e355b55a Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Dec 2018 20:13:56 +0000 Subject: [PATCH] Fix ActivityPub with Nextcloud --- src/Module/Inbox.php | 1 + src/Util/HTTPSignature.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Module/Inbox.php b/src/Module/Inbox.php index 25312bdf3a..692e4043ad 100644 --- a/src/Module/Inbox.php +++ b/src/Module/Inbox.php @@ -9,6 +9,7 @@ use Friendica\Protocol\ActivityPub; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Util\HTTPSignature; +use Friendica\Core\Logger; /** * ActivityPub Inbox diff --git a/src/Util/HTTPSignature.php b/src/Util/HTTPSignature.php index 956d6ff372..07ff5e805d 100644 --- a/src/Util/HTTPSignature.php +++ b/src/Util/HTTPSignature.php @@ -204,6 +204,8 @@ class HTTPSignature if (preg_match('/algorithm="(.*?)"/ism', $header, $matches)) { $ret['algorithm'] = $matches[1]; + } else { + $ret['algorithm'] = 'rsa-sha256'; } if (preg_match('/headers="(.*?)"/ism', $header, $matches)) {