mirror of
https://github.com/derf/travelynx
synced 2024-11-10 06:54:17 +00:00
comment editor, share button: fix comment visibility check
This commit is contained in:
parent
24584f71b1
commit
a3c97a17a8
2 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue