]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OStatus/PubSubHubBub.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / OStatus / PubSubHubBub.php
index 8fb7d886229a8549a81273c83ea6b2b6a190f621..c8fcb4249b814fa79183cf8f75387faad0ad6770 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -71,6 +71,8 @@ class PubSubHubBub extends \Friendica\BaseModule
                        throw new HTTPException\ForbiddenException();
                }
 
+               $this->logger->debug('Got request data.', ['request' => $request]);
+
                // Subscription request from subscriber
                // https://pubsubhubbub.github.io/PubSubHubbub/pubsubhubbub-core-0.4.html#rfc.section.5.1
                // Example from GNU Social:
@@ -109,7 +111,7 @@ class PubSubHubBub extends \Friendica\BaseModule
                }
 
                // fetch user from database given the nickname
-               $condition = ['nickname' => $nickname, 'account_expired' => false, 'account_removed' => false];
+               $condition = ['nickname' => $nickname, 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false];
                $owner     = $this->database->selectFirst('user', ['uid', 'nickname'], $condition);
                if (!$owner) {
                        $this->logger->notice('Local account not found', ['nickname' => $nickname, 'topic' => $hub_topic, 'callback' => $hub_callback]);