summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Controller/Traveling.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-06 21:42:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-06 21:44:31 +0100
commitfb126c69289abf7174f53b0d04f56f195e0fbd12 (patch)
tree7e80d49575891f90132b05a95ab5a242260de53e /lib/Travelynx/Controller/Traveling.pm
parent094c536eb475b02a26f65769d6ff460d270ef454 (diff)
optionally show journey comment in public user status
Closes #19
Diffstat (limited to 'lib/Travelynx/Controller/Traveling.pm')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index f41d8df..3f8f37e 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -75,9 +75,10 @@ sub user_status {
$self->render(
'user_status',
- name => $name,
- journey => $status,
- twitter => \%tw_data,
+ name => $name,
+ public_level => $user->{public_level},
+ journey => $status,
+ twitter => \%tw_data,
);
}
else {
@@ -97,8 +98,9 @@ sub public_status_card {
my $status = $self->get_user_status( $user->{id} );
$self->render(
'_public_status_card',
- name => $name,
- journey => $status
+ name => $name,
+ public_level => $user->{public_level},
+ journey => $status
);
}
else {