]> git.mxchange.org Git - friendica.git/blobdiff - mod/pubsub.php
add the homepage_verified field to the profile table and the owner-view
[friendica.git] / mod / pubsub.php
index 630b68f50428403f013eaaf08c95ffef157a9b0a..a740b7b81da89c5e03ea6e5d5e03401c0cfbb25d 100644 (file)
@@ -22,6 +22,7 @@
 use Friendica\App;
 use Friendica\Core\Logger;
 use Friendica\Core\Protocol;
+use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\DI;
 use Friendica\Model\Contact;
@@ -38,8 +39,7 @@ function hub_return($valid, $body)
        } else {
                throw new \Friendica\Network\HTTPException\NotFoundException();
        }
-       DI::page()->logRuntime();
-       exit();
+       System::exit();
 }
 
 // when receiving an XML feed, always return OK
@@ -145,7 +145,7 @@ function pubsub_post(App $a)
        }
 
        // We only import feeds from OStatus here
-       if ($contact['network'] != Protocol::OSTATUS) {
+       if (!in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS])) {
                Logger::warning('Unexpected network', ['contact' => $contact]);
                hub_post_return();
        }