]> git.cworth.org Git - zombocom-ai/blobdiff - index.js
Hide images with a censored attribute
[zombocom-ai] / index.js
index 7bd8a10d3f7663a7ac8cc26e031a80a04d3c76d2..6f2a62597395c90c1a2e48884edaf3b65a5ec028 100644 (file)
--- a/index.js
+++ b/index.js
@@ -136,7 +136,8 @@ io.on('connection', (socket) => {
                 const images = JSON.parse(data);
                 images.forEach((image) => {
                     image.id = state.images.length;
-                   image.comments = [];
+                    image.censored = false;
+                    image.comments = [];
                     io.emit('image', image);
                     state.images.push(image);
                 });