X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_notify.php;h=efe785d63476dacf2f10f5485b1fd779aeb0540e;hb=831fff0f5c4497ccb14a9e1cb3299136f5682a3d;hp=dee6bad779538e3c540ba856befc2781a6df88e8;hpb=f8c0f24e34e124ab782d5dcf3d2d658d70e19e5c;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index dee6bad779..efe785d634 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -15,8 +15,8 @@ use Friendica\Model\Contact; use Friendica\Model\User; use Friendica\Protocol\DFRN; use Friendica\Protocol\Diaspora; -use Friendica\Util\Strings; use Friendica\Util\Network; +use Friendica\Util\Strings; function dfrn_notify_post(App $a) { Logger::log(__function__, Logger::TRACE); @@ -184,7 +184,7 @@ function dfrn_notify_post(App $a) { function dfrn_dispatch_public($postdata) { - $msg = Diaspora::decodeRaw([], $postdata, true); + $msg = Diaspora::decodeRaw($postdata, '', true); if (!$msg) { // We have to fail silently to be able to hand it over to the salmon parser return false; @@ -214,7 +214,7 @@ function dfrn_dispatch_public($postdata) function dfrn_dispatch_private($user, $postdata) { - $msg = Diaspora::decodeRaw($user, $postdata); + $msg = Diaspora::decodeRaw($postdata, $user['prvkey'] ?? ''); if (!$msg) { System::xmlExit(4, 'Unable to parse message'); }