« get me outta code hell

content: image: fix CW-decorating images which are missing - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-01 17:59:54 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-01 17:59:54 -0300
commit26a147bff746dea09ec68df184fe0ea0e2920608 (patch)
treed1df23d9863cd7bf9c97d3aa2da15485e3263e56 /src/content/dependencies
parent963e04f124f98464a986487208ee4f9edd893984 (diff)
content: image: fix CW-decorating images which are missing
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/image.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content/dependencies/image.js b/src/content/dependencies/image.js
index 64fe8533..6c0aeecd 100644
--- a/src/content/dependencies/image.js
+++ b/src/content/dependencies/image.js
@@ -102,6 +102,7 @@ export default {
     const willReveal =
       slots.reveal &&
       originalSrc &&
+      !isMissingImageFile &&
       !empty(data.contentWarnings);
 
     const willSquare = slots.square;