1
0
Fork 0

Merge pull request #4214 from annando/fix-silence

Silencing an account does work again
This commit is contained in:
Hypolite Petovan 2018-01-11 19:30:51 -05:00 committed by GitHub
commit 5c6ee6ea26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ if (in_array($net['network'], array(NETWORK_PHANTOM, NETWORK_MAIL))) {
$nurl = normalise_link($net['url']);
$contact = dba::selectFirst("contact", ["id"], ["nurl" => $nurl, "uid" => 0]);
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";
} else {
echo "NOTICE: Could not find any entry for this URL (".$nurl.")\r\n";