Which will allow for a message to be hidden in the set of which images
are censored by ZomboCom.
const figure = document.createElement('figure');
figure.id = "image_" + image.id;
+ if (image.censored) {
+ figure.style.display = "none";
+ }
+
const img = document.createElement('img');
img.src = image.filename;
figure.appendChild(img);
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);
});