]> git.mxchange.org Git - friendica.git/commitdiff
Fix ActivityPub with Nextcloud
authorMichael <heluecht@pirati.ca>
Mon, 17 Dec 2018 20:13:56 +0000 (20:13 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 17 Dec 2018 20:13:56 +0000 (20:13 +0000)
src/Module/Inbox.php
src/Util/HTTPSignature.php

index 25312bdf3af22caf43846ec65532ef4a5a391527..692e4043adce99f6fec85c4326a6b9ead51404cb 100644 (file)
@@ -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
index 956d6ff3728d36b4d55a8b8abe4f81c406f636ce..07ff5e805d9b3293c921786d7ac195ac6ea02ff5 100644 (file)
@@ -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)) {