diff --git a/src/Model/User.php b/src/Model/User.php index 39f9dc2a15..1959e95798 100644 --- a/src/Model/User.php +++ b/src/Model/User.php @@ -215,7 +215,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, 'account_removed' => false, 'expire']) && + if (!DBA::exists('user', ['nickname' => $name, 'account_removed' => false, 'expire' => false]) && !DBA::exists('userd', ['username' => $name])) { DI::config()->set('system', 'actor_name', $name); return $name;