X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_notify.php;h=1a9f98fa33103f8f411a9ebd6d12dca36bee812d;hb=b55546b72649a645987e017397901a86122eba67;hp=ac62d745342b8322ee0b8d0900b0c81b865c125d;hpb=ad9c67663d8206315c649be3b27bf5418fb91ad3;p=friendica.git diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index ac62d74534..1a9f98fa33 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -12,6 +12,7 @@ use Friendica\Core\Logger; use Friendica\Core\System; use Friendica\Database\DBA; use Friendica\Model\Contact; +use Friendica\Model\User; use Friendica\Protocol\DFRN; use Friendica\Protocol\Diaspora; use Friendica\Util\Strings; @@ -28,7 +29,7 @@ function dfrn_notify_post(App $a) { $user = DBA::selectFirst('user', [], ['nickname' => $nick, 'account_expired' => false, 'account_removed' => false]); if (!DBA::isResult($user)) { - System::httpExit(500); + throw new \Friendica\Network\HTTPException\InternalServerErrorException(); } dfrn_dispatch_private($user, $postdata); } elseif (!dfrn_dispatch_public($postdata)) { @@ -299,6 +300,7 @@ function dfrn_notify_content(App $a) { break; default: $status = 1; + $my_id = ''; break; }