mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
set default visibility to unlisted
This commit is contained in:
parent
ad544949ad
commit
b725d7d52c
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue