From 5d457f99e7732be00d186b10726bcb4e9abc1a88 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 8 Sep 2023 15:15:38 +0000 Subject: [PATCH] Inverse logic --- src/Model/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5