]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/DiscoverPoCo.php
Add search types
[friendica.git] / src / Worker / DiscoverPoCo.php
index 55eeec98f2e024843cb58a162746e8d3b4c92d7b..e8f5055c8642a95db7748acc23246ac28172c704 100644 (file)
@@ -99,7 +99,7 @@ class DiscoverPoCo
                } elseif (($mode == 1) && ($search != "") && Config::get('system', 'poco_local_search')) {
                        self::discoverDirectory($search);
                        self::gsSearchUser($search);
-               } elseif (($mode == 0) && ($search == "") && (Config::get('system', 'poco_discovery') > 0)) {
+               } elseif (($mode == 0) && ($search == "") && (Config::get('system', 'poco_discovery') != PortableContact::DISABLED)) {
                        // Query Friendica and Hubzilla servers for their users
                        PortableContact::discover();
 
@@ -267,6 +267,9 @@ class DiscoverPoCo
         * @brief Search for GNU Social user with gstools.org
         *
         * @param string $search User name
+        * @return bool
+        * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+        * @throws \ImagickException
         */
        private static function gsSearchUser($search) {