profile: use effective visibility from journey object
This commit is contained in:
parent
4f54597c0d
commit
a73e2edc86
4 changed files with 23 additions and 29 deletions
|
@ -214,7 +214,6 @@ sub profile {
|
||||||
( $inverse_relation and $inverse_relation eq 'requests_follow' ) ? 1
|
( $inverse_relation and $inverse_relation eq 'requests_follow' ) ? 1
|
||||||
: 0,
|
: 0,
|
||||||
journey => $status,
|
journey => $status,
|
||||||
journey_visibility => $visibility,
|
|
||||||
journeys => [@journeys],
|
journeys => [@journeys],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -370,7 +369,6 @@ sub journey_details {
|
||||||
readonly => 1,
|
readonly => 1,
|
||||||
twitter => \%tw_data,
|
twitter => \%tw_data,
|
||||||
opengraph => \%og_data,
|
opengraph => \%og_data,
|
||||||
journey_visibility => $visibility,
|
|
||||||
%{$map_data},
|
%{$map_data},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -546,7 +544,6 @@ sub user_status {
|
||||||
name => $name,
|
name => $name,
|
||||||
privacy => $user,
|
privacy => $user,
|
||||||
journey => $status,
|
journey => $status,
|
||||||
journey_visibility => $visibility,
|
|
||||||
twitter => \%tw_data,
|
twitter => \%tw_data,
|
||||||
opengraph => \%og_data,
|
opengraph => \%og_data,
|
||||||
version => $self->app->config->{version} // 'UNKNOWN',
|
version => $self->app->config->{version} // 'UNKNOWN',
|
||||||
|
@ -629,7 +626,6 @@ sub status_card {
|
||||||
name => $name,
|
name => $name,
|
||||||
privacy => $user,
|
privacy => $user,
|
||||||
journey => $status,
|
journey => $status,
|
||||||
journey_visibility => $visibility,
|
|
||||||
from_profile => $self->param('profile') ? 1 : 0,
|
from_profile => $self->param('profile') ? 1 : 0,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,9 +10,7 @@
|
||||||
% else {
|
% else {
|
||||||
<a href="/p/<%= $name %>"><%= $name %></a> ist unterwegs
|
<a href="/p/<%= $name %>"><%= $name %></a> ist unterwegs
|
||||||
% }
|
% }
|
||||||
% if ($journey_visibility) {
|
<i class="material-icons right"><%= visibility_icon($journey->{effective_visibility_str}) %></i>
|
||||||
<i class="material-icons right"><%= visibility_icon($journey_visibility) %></i>
|
|
||||||
% }
|
|
||||||
</span>
|
</span>
|
||||||
% if ($privacy->{comments_visible} and $journey->{comment}) {
|
% if ($privacy->{comments_visible} and $journey->{comment}) {
|
||||||
<p>„<%= $journey->{comment} %>“</p>
|
<p>„<%= $journey->{comment} %>“</p>
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12 publicstatuscol" data-user="<%= $name %>" data-profile="1">
|
<div class="col s12 publicstatuscol" data-user="<%= $name %>" data-profile="1">
|
||||||
%= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility, from_profile => 1
|
%= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, from_profile => 1
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
% if ($journeys and @{$journeys}) {
|
% if ($journeys and @{$journeys}) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col s12 publicstatuscol" data-user="<%= $name %>">
|
<div class="col s12 publicstatuscol" data-user="<%= $name %>">
|
||||||
%= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey, journey_visibility => $journey_visibility
|
%= include '_public_status_card', name => $name, privacy => $privacy, journey => $journey
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue