From 67df8f85ffbc078c88e1493017209090fb69123b Mon Sep 17 00:00:00 2001 From: James Collins Date: Sun, 28 Apr 2024 18:15:02 +1000 Subject: [PATCH] generic thumbnail for password protected files --- app/Models/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Media.php b/app/Models/Media.php index 7b68a36..2d96383 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -147,7 +147,7 @@ class Media extends Model */ public function getThumbnailAttribute(): string { - if($this->password !== null) { + if($this->password === null) { if ($this->hasVariant('thumbnail')) { $url = $this->url('thumbnail', true); if ($url !== '') {