From c5957fbdfdf5a3871e0ae421c7e6042ce580d52d Mon Sep 17 00:00:00 2001 From: Derf Null Date: Fri, 23 Jun 2023 22:43:41 +0200 Subject: User: remove legacy public_level / is_public field --- lib/Travelynx/Model/Users.pm | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'lib/Travelynx/Model') diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index ade9711..809273f 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -186,10 +186,9 @@ sub get_privacy_by { if ( my $user = $res->hash ) { return { - id => $user->{id}, - name => $user->{name}, - public_level => $user->{public_level}, # todo remove? - default_visibility => $user->{public_level} & 0x7f, + id => $user->{id}, + name => $user->{name}, + default_visibility => $user->{public_level} & 0x7f, default_visibility_str => $visibility_itoa{ $user->{public_level} & 0x7f }, comments_visible => $user->{public_level} & 0x80 ? 1 : 0, @@ -414,7 +413,6 @@ sub get { notifications => $user->{notifications}, accept_follows => $user->{accept_follows} == 2 ? 1 : 0, accept_follow_requests => $user->{accept_follows} == 1 ? 1 : 0, - is_public => $user->{public_level}, default_visibility => $user->{public_level} & 0x7f, default_visibility_str => $visibility_itoa{ $user->{public_level} & 0x7f }, -- cgit v1.2.3