]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_notify.php
Merge remote-tracking branch 'upstream/2019.06-rc' into issue-6477
[friendica.git] / mod / dfrn_notify.php
index e42f18e76b6fcc656c7ecfc2e0c5ebd9e6f40911..1a9f98fa33103f8f411a9ebd6d12dca36bee812d 100644 (file)
@@ -29,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)) {
@@ -300,6 +300,7 @@ function dfrn_notify_content(App $a) {
                                break;
                        default:
                                $status = 1;
+                               $my_id = '';
                                break;
                }