use Friendica\Core\Protocol;
use Friendica\Database\DBA;
use Friendica\Network\Probe;
+use Friendica\Util\Strings;
use RuntimeException;
-require_once 'include/text.php';
-
/**
* @brief tool to silence accounts on the global community page
*
protected function doExecute()
{
- $a = get_app();
+ $a = \get_app();
if ($this->getOption('v')) {
$this->out('Class: ' . __CLASS__);
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"]]);