From a3c97a17a8b910c1d811fa38e44fdb337bdc4d45 Mon Sep 17 00:00:00 2001 From: Derf Null Date: Mon, 29 May 2023 15:24:51 +0200 Subject: comment editor, share button: fix comment visibility check --- templates/_checked_in.html.ep | 2 +- templates/edit_comment.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index b8c8c6b..2d39842 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -278,7 +278,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} & 0x80 and $journey->{comment}) { + % if ($user->{comments_visible} and $journey->{comment}) { data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx" % } % else { diff --git a/templates/edit_comment.html.ep b/templates/edit_comment.html.ep index 81353a2..4f8e3e4 100644 --- a/templates/edit_comment.html.ep +++ b/templates/edit_comment.html.ep @@ -29,7 +29,7 @@ am <%= $journey->{sched_departure}->strftime('%d.%m.%Y') %>

- % if (current_user()->{is_public} & 0x04) { + % if (current_user()->{comments_visible}) {

Der hier eingetragene Text ist als Teil deines Nutzerstatus öffentlich sichtbar. -- cgit v1.2.3