X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpubsub.php;h=8d6e81a68523e6e862661130205322eb5c5225dc;hb=e447375cddb847edbc9d4486be3938674ae66b8c;hp=f0a8d463c4517999d29773112e2aff9b45a4df13;hpb=218f0734be88e3a504680dd06b917f78787ec8bc;p=friendica.git diff --git a/mod/pubsub.php b/mod/pubsub.php index f0a8d463c4..8d6e81a685 100644 --- a/mod/pubsub.php +++ b/mod/pubsub.php @@ -7,8 +7,7 @@ use Friendica\Database\DBA; use Friendica\Model\Contact; use Friendica\Protocol\OStatus; use Friendica\Util\Strings; - -require_once 'include/items.php'; +use Friendica\Core\System; function hub_return($valid, $body) { @@ -16,7 +15,7 @@ function hub_return($valid, $body) header($_SERVER["SERVER_PROTOCOL"] . ' 200 OK'); echo $body; } else { - header($_SERVER["SERVER_PROTOCOL"] . ' 404 Not Found'); + System::httpExit(404); } killme(); } @@ -25,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)