fix comment visibilitiy check

This commit is contained in:
Daniel Friesel 2023-03-02 18:34:01 +01:00
parent 792ab9fe23
commit 1c46f56b50
2 changed files with 2 additions and 2 deletions

View file

@ -822,7 +822,7 @@ sub public_journey_details {
include_manual => 1,
);
if ( $journey->{user_data}{comment}
and not $user->{public_level} & 0x04 )
and not $user->{comments_visible} )
{
delete $journey->{user_data}{comment};
}

View file

@ -276,7 +276,7 @@
% if ($journey->{real_arrival}->epoch and $journey_visibility eq 'private') {
% $arr_text = $journey->{real_arrival}->strftime(' Ankunft gegen %H:%M Uhr');
% }
% if ($user->{is_public} & 0x04 and $journey->{comment}) {
% if ($user->{is_public} & 0x80 and $journey->{comment}) {
data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx"
% }
% else {