From 5ffcb5c13c0ffb649470aced6b5f1658dcc1cb62 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 8 Dec 2024 03:24:17 -0700 Subject: [PATCH] Update user.blade.php --- resources/views/atom/user.blade.php | 88 +++++++++++++++-------------- 1 file changed, 47 insertions(+), 41 deletions(-) diff --git a/resources/views/atom/user.blade.php b/resources/views/atom/user.blade.php index b0c2ee073..badb1f8de 100644 --- a/resources/views/atom/user.blade.php +++ b/resources/views/atom/user.blade.php @@ -1,46 +1,52 @@ -` won't get parsed as short tags */ -'' . PHP_EOL -?> +' . PHP_EOL ?> - {{$permalink}} - {{$profile['username']}} on Pixelfed - {{$profile['note']}} - @if($items && count($items)) -{{$items[0]['created_at']}} - @endif + {{$permalink}} + {{$profile['username']}} on {{config('pixelfed.domain.app', 'Pixelfed')}} + {{strip_tags($profile['note'])}} + @if($items && count($items)) + {{$items[0]['created_at']}} + @endif - - {{$profile['username']}} - {{$profile['url']}} - + + {{$profile['username']}} + {{$profile['url']}} + - - - @if($items && count($items)) - @foreach($items as $item) - - {{ $item['url'] }} - {{ $item['content_text'] ? $item['content_text'] : "No caption" }} - {{ $item['created_at'] }} - - {{$profile['username']}} - {{$profile['url']}} - - - -

{!! $item['content'] !!}

- ]]> -
- - @if($item['content'] && strlen($item['content'])) - {{ $item['content'] }} - @endif - -
- @endforeach - -@endif + + + @if($items && count($items)) + @foreach($items as $item) + + {{ $item['url'] }} + {{ $item['content_text'] ? $item['content_text'] : "No caption" }} + {{ $item['created_at'] }} + + {{$profile['username']}} + {{$profile['url']}} + + + + @foreach($item['media_attachments'] as $media) + {{ $media['description'] ?? '' }} + @endforeach + +

{!! $item['content'] !!}

+ ]]> +
+ + @if($item['content'] && strlen($item['content'])) + {{ $item['content'] }} + @endif + @foreach($item['media_attachments'] as $media) + + @endforeach +
+ @endforeach + @endif