summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Model/Users.pm
diff options
context:
space:
mode:
authorDerf Null <derf@finalrewind.org>2023-06-23 22:43:41 +0200
committerDerf Null <derf@finalrewind.org>2023-06-23 22:43:41 +0200
commitc5957fbdfdf5a3871e0ae421c7e6042ce580d52d (patch)
treed44bd25531dd7489ae72e4f61831e139d0d7d992 /lib/Travelynx/Model/Users.pm
parentc32b93ff4da116921aa5ac8da4dcfddbf02a2d55 (diff)
User: remove legacy public_level / is_public field
Diffstat (limited to 'lib/Travelynx/Model/Users.pm')
-rw-r--r--lib/Travelynx/Model/Users.pm8
1 files changed, 3 insertions, 5 deletions
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 },