diff options
Diffstat (limited to 'app/Models/Entry.php')
| -rw-r--r-- | app/Models/Entry.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 3e0c3f37a..a190e505d 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -125,13 +125,16 @@ class FreshRSS_Entry extends Minz_Model { } } - public function thumbnail(): string { + /** + * @return array<string,string>|null + */ + public function thumbnail() { foreach ($this->enclosures(true) as $enclosure) { if (!empty($enclosure['url']) && empty($enclosure['type'])) { return $enclosure; } } - return ''; + return null; } public function link(): string { |
