- $nurl = normalise_link($net['url']);
- $contact = \dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
- if (DBM::is_result($contact)) {
- \dba::update("contact", ["hidden" => true], ["id" => $contact["id"]]);
+ $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"]]);