]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Console/GlobalCommunitySilence.php
normalise_link calls
[friendica.git] / src / Core / Console / GlobalCommunitySilence.php
index 03101cdf0f3ec4da192a2436f0ec1fa74a747046..01413cab13ffe05bd4d93beb846f380abc942c3a 100644 (file)
@@ -5,6 +5,7 @@ namespace Friendica\Core\Console;
 use Friendica\Core\Protocol;
 use Friendica\Database\DBA;
 use Friendica\Network\Probe;
+use Friendica\Util\Strings;
 use RuntimeException;
 
 require_once 'include/text.php';
@@ -65,7 +66,7 @@ HELP;
                        throw new \Asika\SimpleConsole\CommandArgsException('Too many arguments');
                }
 
-               if ($a->isInstallMode()) {
+               if ($a->getMode()->isInstall()) {
                        throw new RuntimeException('Database isn\'t ready or populated yet');
                }
 
@@ -79,7 +80,7 @@ HELP;
                        throw new RuntimeException('This account seems not to exist.');
                }
 
-               $nurl = normalise_link($net['url']);
+               $nurl = Strings::normaliseLink($net['url']);
                $contact = DBA::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
                if (DBA::isResult($contact)) {
                        DBA::update("contact", ["hidden" => true], ["id" => $contact["id"]]);