From 023fe60ce56182f127faa910cc33da2397fd0e8c Mon Sep 17 00:00:00 2001 From: Harm te Molder Date: Thu, 29 Dec 2022 21:26:31 +0100 Subject: [PATCH 1/3] Add media:content to atom feed --- resources/views/atom/user.blade.php | 40 ++++++++++++++++------------- 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/resources/views/atom/user.blade.php b/resources/views/atom/user.blade.php index 792dd7466..0a45c3a30 100644 --- a/resources/views/atom/user.blade.php +++ b/resources/views/atom/user.blade.php @@ -3,30 +3,34 @@ ''.PHP_EOL ?> - {{$permalink}} - {{$profile['username']}} on Pixelfed - {{$profile['note']}} - {{$profile['created_at']}} - - {{$profile['url']}} - {{$profile['url']}} - - - -@foreach($items as $item) - {{ $item['content'] ? strip_tags($item['content']) : "No caption" }} - + {{$permalink}} + {{$profile['username']}} on Pixelfed + {{$profile['note']}} + {{$items[0]['created_at']} + + {{$profile['username']}} + {{$profile['url']}} + + + +@foreach($items as $item) + {{ $item['url'] }} + {{ $item['content_text'] ? $item['content_text'] : "No caption" }} + {{ $item['created_at'] }} - + {{$profile['username']}} + {{$profile['url']}} - + iteration}}" src="{{ $item['media_attachments'][0]['url'] }}" alt="{{ $item['media_attachments'][0]['description'] }}">

{{ $item['content'] }}

- ]]> -
- {{ $item['created_at'] }} + ]]> + + + {{ $item['content'] }} +
@endforeach
From 31cefa4b9e4116f3c738d1bc1cb997685bdd3dd6 Mon Sep 17 00:00:00 2001 From: Harm te Molder Date: Sat, 7 Jan 2023 18:21:21 +0100 Subject: [PATCH 2/3] Fix missing curly brace --- resources/views/atom/user.blade.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/resources/views/atom/user.blade.php b/resources/views/atom/user.blade.php index 0a45c3a30..e38014f55 100644 --- a/resources/views/atom/user.blade.php +++ b/resources/views/atom/user.blade.php @@ -1,19 +1,19 @@ ` won't get parsed as short tags */ - ''.PHP_EOL +/* Using an echo tag here so the `` won't get parsed as short tags */ +'' . PHP_EOL ?> {{$permalink}} {{$profile['username']}} on Pixelfed {{$profile['note']}} - {{$items[0]['created_at']} + {{$items[0]['created_at']}} {{$profile['username']}} {{$profile['url']}} - - -@foreach($items as $item) + + + @foreach($items as $item) {{ $item['url'] }} {{ $item['content_text'] ? $item['content_text'] : "No caption" }} @@ -23,14 +23,14 @@ {{$profile['url']}} - iteration}}" src="{{ $item['media_attachments'][0]['url'] }}" alt="{{ $item['media_attachments'][0]['description'] }}">

{{ $item['content'] }}

- ]]> + ]]>
- {{ $item['content'] }} + {{ $item['content'] }}
-@endforeach + @endforeach
From 29ce7af02092efe4798e9395836c5dce6630dab3 Mon Sep 17 00:00:00 2001 From: Harm te Molder Date: Sat, 7 Jan 2023 18:46:07 +0100 Subject: [PATCH 3/3] Fix missing closing slash --- resources/views/atom/user.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/atom/user.blade.php b/resources/views/atom/user.blade.php index e38014f55..af7f5de69 100644 --- a/resources/views/atom/user.blade.php +++ b/resources/views/atom/user.blade.php @@ -30,7 +30,7 @@ {{ $item['content'] }} - + @endforeach