]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/GlobalCommunitySilence.php
Merge remote-tracking branch 'upstream/develop' into api4
[friendica.git] / src / Console / GlobalCommunitySilence.php
index d74892b340b8549a1a42e0e81cc93fa81e71a08a..2e65109e8b892ae27ee908346cfaad4f42a6ce12 100644 (file)
@@ -98,7 +98,7 @@ HELP;
 
                $contact_id = Contact::getIdForURL($this->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) . ')');