« get me outta code hell

content, replacer: move warning splitting into replacer - 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>2024-02-18 17:03:46 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-18 17:03:46 -0400
commit84290316071c23c35661f556a9959b86a33b8314 (patch)
treeece3ab38db08e66f1bd39f7a8c65ae4b27a07e3c /src/content/dependencies
parenta4ba1bd41ca0a99e31595f6975a04e6718946984 (diff)
content, replacer: move warning splitting into replacer
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/transformContent.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js
index 84881016..69030224 100644
--- a/src/content/dependencies/transformContent.js
+++ b/src/content/dependencies/transformContent.js
@@ -229,7 +229,7 @@ export default {
             const {
               link,
               style,
-              warning,
+              warnings,
               width,
               height,
               pixelate,
@@ -264,13 +264,9 @@ export default {
                     link: link ?? true,
                     width: width ?? null,
                     height: height ?? null,
+                    warnings: warnings ?? null,
                     thumb: slots.thumb,
 
-                    warnings:
-                      (warning
-                        ? warning.split(', ')
-                        : null),
-
                     attributes: [
                       {class: 'content-image'},