Users->add: correctly specify default visibility

This commit is contained in:
Derf Null 2023-06-25 11:09:51 +02:00
parent 4845a03f07
commit e14966c488
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -484,9 +484,10 @@ sub add {
my $res = $db->insert( my $res = $db->insert(
'users', 'users',
{ {
name => $user_name, name => $user_name,
status => 0, status => 0,
public_level => $visibility_atoi{unlisted}, public_level => $visibility_atoi{unlisted}
| ( $visibility_atoi{unlisted} << 8 ),
email => $email, email => $email,
password => $password, password => $password,
registered_at => $now, registered_at => $now,