Silencing an account does work again
This commit is contained in:
parent
dc45bc3c84
commit
dfe11b1863
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ if (in_array($net['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) {
|
||||||
$nurl = normalise_link($net['url']);
|
$nurl = normalise_link($net['url']);
|
||||||
$contact = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
|
$contact = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
|
||||||
if (DBM::is_result($contact)) {
|
if (DBM::is_result($contact)) {
|
||||||
dba::update("contact", array("hidden" => true), array("id" => $r["id"]));
|
dba::update("contact", array("hidden" => true), array("id" => $contact["id"]));
|
||||||
echo "NOTICE: The account should be silenced from the global community page\r\n";
|
echo "NOTICE: The account should be silenced from the global community page\r\n";
|
||||||
} else {
|
} else {
|
||||||
echo "NOTICE: Could not find any entry for this URL (".$nurl.")\r\n";
|
echo "NOTICE: Could not find any entry for this URL (".$nurl.")\r\n";
|
||||||
|
|
Loading…
Reference in a new issue