X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FConsole%2FGlobalCommunitySilence.php;h=a493bbcb86d32ffdb8383f837a73909f48d1bae8;hb=02473d8a0e22e65d18b2b6d505d8795379e256ec;hp=26f5f835020f3f8c09931c76fb6046a16441c444;hpb=779099a491486333424717e0fecc7390fada24a2;p=friendica.git diff --git a/src/Console/GlobalCommunitySilence.php b/src/Console/GlobalCommunitySilence.php index 26f5f83502..a493bbcb86 100644 --- a/src/Console/GlobalCommunitySilence.php +++ b/src/Console/GlobalCommunitySilence.php @@ -1,6 +1,6 @@ getArgument(0)); if ($contact_id) { - $this->dba->update('contact', ['hidden' => true], ['id' => $contact_id]); + Contact::update(['hidden' => true], ['id' => $contact_id]); $this->out('The account has been successfully silenced from the global community page.'); } else { throw new RuntimeException('Could not find any public contact entry for this URL (' . $this->getArgument(0) . ')');