]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsub.php
Fixing some notice again
[friendica.git] / mod / pubsub.php
index cb6738ada33ed3ce7f5a3e542cadc078440bbdec..8d6e81a68523e6e862661130205322eb5c5225dc 100644 (file)
@@ -9,15 +9,13 @@ use Friendica\Protocol\OStatus;
 use Friendica\Util\Strings;
 use Friendica\Core\System;
 
-require_once 'include/items.php';
-
 function hub_return($valid, $body)
 {
        if ($valid) {
                header($_SERVER["SERVER_PROTOCOL"] . ' 200 OK');
                echo $body;
        } else {
-               System::httpExit(404, ['title' => L10n::t('Not found.')]);
+               System::httpExit(404);
        }
        killme();
 }
@@ -26,8 +24,7 @@ function hub_return($valid, $body)
 
 function hub_post_return()
 {
-       header($_SERVER["SERVER_PROTOCOL"] . ' 200 OK');
-       killme();
+       System::httpExit(200);
 }
 
 function pubsub_init(App $a)