]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/OStatus/Salmon.php
Merge pull request #13724 from Raroun/Fix-for-Issue-#13637---Photo-caption-prevents...
[friendica.git] / src / Module / OStatus / Salmon.php
index 0fd901eaf470f8d912729949a691fc9a86c72433..9f064869287aa7e08b4f23792ad21a3f8e92902c 100644 (file)
@@ -62,9 +62,10 @@ class Salmon extends \Friendica\BaseModule
         * @throws HTTPException\OKException
         * @throws \ImagickException
         */
-       protected function rawContent(array $request = [])
+       protected function post(array $request = [])
        {
                $xml = Network::postdata();
+               $this->logger->debug('Got request data.', ['request' => $request]);
 
                $nickname = $this->parameters['nickname'] ?? '';
                if (empty($nickname)) {
@@ -73,7 +74,7 @@ class Salmon extends \Friendica\BaseModule
 
                $this->logger->debug('New Salmon', ['nickname' => $nickname, 'xml' => $xml]);
 
-               $importer = $this->database->selectFirst('user', [], ['nickname' => $nickname, 'account_expired' => false, 'account_removed' => false]);
+               $importer = $this->database->selectFirst('user', [], ['nickname' => $nickname, 'verified' => true, 'blocked' => false, 'account_removed' => false, 'account_expired' => false]);
                if (!$this->database->isResult($importer)) {
                        throw new HTTPException\InternalServerErrorException();
                }