summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller
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/Controller
parentc32b93ff4da116921aa5ac8da4dcfddbf02a2d55 (diff)
User: remove legacy public_level / is_public field
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-xlib/Travelynx/Controller/Profile.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Profile.pm b/lib/Travelynx/Controller/Profile.pm
index 3923773..ff69c43 100755
--- a/lib/Travelynx/Controller/Profile.pm
+++ b/lib/Travelynx/Controller/Profile.pm
@@ -183,9 +183,9 @@ sub profile {
'profile',
name => $name,
uid => $user->{id},
+ privacy => $user,
bio => $profile->{bio}{html},
metadata => $profile->{metadata},
- public_level => $user->{public_level},
is_self => $is_self,
following => ( $relation and $relation eq 'follows' ) ? 1 : 0,
follow_requested => ( $relation and $relation eq 'requests_follow' )
@@ -533,7 +533,7 @@ sub user_status {
any => {
template => 'user_status',
name => $name,
- public_level => $user->{public_level},
+ privacy => $user,
journey => $status,
journey_visibility => $visibility,
twitter => \%tw_data,
@@ -615,7 +615,7 @@ sub status_card {
$self->render(
'_public_status_card',
name => $name,
- public_level => $user->{public_level},
+ privacy => $user,
journey => $status,
journey_visibility => $visibility,
from_profile => $self->param('profile') ? 1 : 0,