Unverified Commit a3c97a17 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

comment editor, share button: fix comment visibility check

parent 24584f71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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.