From 25166c218be4e1ce1cb098de274a231b623d527e Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 26 Feb 2024 09:00:35 +0100 Subject: RSS thumbnails (#5972) * Added addtional media:content for thumbnails * Fix whitespace * More attributes for enclosures * Fix variable * Fix variable * No duplicates --------- Co-authored-by: root --- app/Models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index d3cfa07de..9caca1fb7 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -314,7 +314,7 @@ HTML; } /** - * @return array{'url':string,'type'?:string,'medium'?:string,'length'?:int,'title'?:string,'description'?:string,'credit'?:string,'height'?:int,'width'?:int,'thumbnails'?:array}|null + * @return array{'url':string,'height'?:int,'width'?:int,'time'?:string}|null */ public function thumbnail(bool $searchEnclosures = true): ?array { $thumbnail = $this->attributeArray('thumbnail') ?? []; -- cgit v1.2.3