This will be a sort of Easter Egg for hiding a link to a
puzzle. Hopefully this one goes smoothly!
const img = document.createElement('img');
img.src = image.filename;
- figure.appendChild(img);
+
+ if (image.link) {
+ const a = document.createElement('a');
+ a.href = image.link;
+ a.appendChild(img);
+ figure.appendChild(a);
+ } else {
+ figure.appendChild(img);
+ }
if (image.censored) {
img.style.display = "none";
images.forEach((image) => {
image.id = state.images.length;
image.censored = false;
+ image.link = "";
image.comments = [];
io.emit('image', image);
state.images.push(image);