X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;h=b0e7d7ae4126428d383ddd31731f09feda8a570a;hb=7dd4521eb06dd0292956576a98625a75aad310e1;hp=49a85669e45c3c436ccf2141042d4ca30f9c1339;hpb=45ec0d495bf05aa62fba0be4a0e07ed29500707b;p=zombocom-ai diff --git a/index.js b/index.js index 49a8566..b0e7d7a 100644 --- a/index.js +++ b/index.js @@ -124,6 +124,7 @@ io.on('connection', (socket) => { const images = JSON.parse(data); images.forEach((image) => { image.id = state.images.length; + image.comments = []; io.emit('image', image); state.images.push(image); });