comment editor, share button: fix comment visibility check

This commit is contained in:
Derf Null 2023-05-29 15:24:51 +02:00
parent 24584f71b1
commit a3c97a17a8
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -29,7 +29,7 @@
am
<b><%= $journey->{sched_departure}->strftime('%d.%m.%Y') %></b>
</p>
% if (current_user()->{is_public} & 0x04) {
% if (current_user()->{comments_visible}) {
<p>
Der hier eingetragene Text ist als Teil deines Nutzerstatus
öffentlich sichtbar.