showing the mentions in the comment block

This commit is contained in:
Ghostie 2025-01-08 21:35:22 -05:00
parent 1de2b23b5d
commit bffa72125a

View File

@ -117,6 +117,17 @@ else
</p>
@endif
@if ($display_post->get_mentions ()->count () > 0)
<p>
<b>Mentions:</b>
@foreach ($display_post->get_mentions ()->get () as $mention)
<a href="{{ route ('users.show', [ 'user_name' => $mention->actor->local_actor_id ?? $mention->actor->preferredUsername ]) }}">
<span class="mention">{{ $mention->actor->local_actor_id ?? '@' . $mention->actor->preferredUsername }}</span>
</a>
@endforeach
</p>
@endif
<hr>
<p>