set default visibility to unlisted

This commit is contained in:
Daniel Friesel 2023-03-03 15:05:00 +01:00
parent ad544949ad
commit b725d7d52c
2 changed files with 4 additions and 2 deletions

View file

@ -1384,7 +1384,9 @@ my @migrations = (
my $res = $db->select( 'users', [ 'id', 'public_level' ] );
while ( my $row = $res->hash ) {
my $old_level = $row->{public_level};
my $new_level = 0;
# status default: unlisted
my $new_level = 30;
if ( $old_level & 0x01 ) {
# status: account required

View file

@ -437,7 +437,7 @@ sub add {
{
name => $user_name,
status => 0,
public_level => $visibility_atoi{private},
public_level => $visibility_atoi{unlisted},
email => $email,
password => $password,
registered_at => $now,