From: Michael Date: Fri, 8 Sep 2023 15:15:38 +0000 (+0000) Subject: Inverse logic X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d457f99e7732be00d186b10726bcb4e9abc1a88;p=friendica.git Inverse logic --- diff --git a/src/Model/User.php b/src/Model/User.php index 3505f3b7af..79e2386381 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -280,7 +280,7 @@ class User // List of possible actor names $possible_accounts = ['friendica', 'actor', 'system', 'internal']; foreach ($possible_accounts as $name) { - if (!DBA::exists('user', ['nickname' => $name]) && DBA::exists('userd', ['username' => $name])) { + if (!DBA::exists('user', ['nickname' => $name]) && !DBA::exists('userd', ['username' => $name])) { DI::config()->set('system', 'actor_name', $name); return $name; }