@php $actor_url = ""; if ($actor->user_id) $actor_url = route ('users.show', [ 'user_name' => $actor->user->name ]); else $actor_url = route ('users.show', [ 'user_name' => $actor->local_actor_id ]); @endphp

{{ $actor->name }}

@if ($actor->user) @else @endif

@if ($post->in_reply_to) In response to this post @endif

{{ $post->summary }}

{!! $post->content !!}

@foreach ($post->attachments as $attachment) {{ $attachment->name }} @endforeach


@if ($post->get_replies ()->count () > 0)
@foreach ($post->get_replies ()->get () as $reply)

{{ $reply->summary }}

{!! $reply->content !!}

@foreach ($reply->attachments as $attachment) {{ $attachment->name }} @endforeach

by {{ $reply->get_actor ()->first ()->name }} ;

@endforeach
@endif @if ($post->get_hashtags ()->count () > 0)

Tags: @foreach ($post->get_hashtags ()->get () as $hashtag) {{ $hashtag->name }} @endforeach

@endif

Likes: {{ $post->get_likes ()->count () }}

Replies: {{ $post->get_replies ()->count () }}

{{-- @if ($actor->user && auth ()->check () && auth ()->user ()->is ($actor->user))
@csrf
@endif --}}