]> 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 de2104b212e93c434912bd2bb46b3c8a6d52e024..c8fcb4249b814fa79183cf8f75387faad0ad6770 100644 (file)
@@ -71,7 +71,7 @@ class PubSubHubBub extends \Friendica\BaseModule
                        throw new HTTPException\ForbiddenException();
                }
 
-               $this->logger->debug('Gut request data.', ['request' => $request]);
+               $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
@@ -111,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]);