From e153ca65cd32c78d6d71c944b379652169e85318 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 28 Jan 2024 18:31:58 +0100 Subject: [PATCH 1/2] Fix icons not being considered images by dashboard viewer --- RELEASE_NOTES.md | 2 +- packages/realtime-compiler/resources/dashboard.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1b56f37fc74..a1a724c365d 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -23,7 +23,7 @@ This serves two purposes: - for now removed features. ### Fixed -- for any bug fixes. +- Fixed icons not being considered images by dashboard viewer in ### Security - in case of vulnerabilities. diff --git a/packages/realtime-compiler/resources/dashboard.blade.php b/packages/realtime-compiler/resources/dashboard.blade.php index 434ef0e2cd0..1c2f1086e1f 100644 --- a/packages/realtime-compiler/resources/dashboard.blade.php +++ b/packages/realtime-compiler/resources/dashboard.blade.php @@ -292,7 +292,7 @@ @foreach(\Hyde\Support\Filesystem\MediaFile::all() as $mediaFile)
- @if(in_array($mediaFile->getExtension(), ['svg', 'png', 'jpg', 'jpeg', 'gif'])) + @if(in_array($mediaFile->getExtension(), ['svg', 'png', 'jpg', 'jpeg', 'gif', 'ico'])) {{ $mediaFile->getName() }} @else From 651863868e93ab9846363a7330c0d46bbf986e49 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sun, 28 Jan 2024 18:32:44 +0100 Subject: [PATCH 2/2] Update RELEASE_NOTES.md --- RELEASE_NOTES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index a1a724c365d..1ff22ed94ac 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -23,7 +23,7 @@ This serves two purposes: - for now removed features. ### Fixed -- Fixed icons not being considered images by dashboard viewer in +- Fixed icons not being considered as images by dashboard viewer in https://github.com/hydephp/develop/pull/1512 ### Security - in case of vulnerabilities.