+ @php($authed = request()->user())
+ @php($pid = $authed ? request()->user()->profile_id : null)
@php($gp = $status->parent()->parent())
@if($gp)
- @if($gp->scope == 'archived')
+ @if(
+ !in_array($gp->scope, ['public', 'unlisted', 'private']) ||
+ ($gp->scope == 'private' && !$authed) ||
+ ($gp->scope == 'private' && ($gp->profile_id != $pid && \App\Services\FollowerService::follows($pid, $gp->profile_id) == false))
+ )
This status cannot be viewed at this time.
@else
@@ -41,8 +47,11 @@
@php($parent = $status->parent())
-
- @if($parent->scope == 'archived')
+ @if(
+ !in_array($parent->scope, ['public', 'unlisted', 'private']) ||
+ ($parent->scope == 'private' && !$authed) ||
+ ($parent->scope == 'private' && ($parent->profile_id != $pid && \App\Services\FollowerService::follows($pid, $parent->profile_id) == false))
+ )
This status cannot be viewed at this time.
@else