diff --git a/index.js b/index.js index a1fca2f..0b81d09 100644 --- a/index.js +++ b/index.js @@ -479,7 +479,15 @@ fastify.post('/sendTreasure', async (request, reply) => { if (activityExists.success) { if (ActivityData[content.activityUid].type == "treasure") { let imageUid = makeid(128); - fs.writeFileSync("static/images/"+imageUid, content.image); + let fileImage = ` + + +
+ + + + ` + fs.writeFileSync("static/images/" + imageUid + ".html", fileImage); TreasureData[treasureUid] = { date: new Date(), creator: content.uid, diff --git a/static/js/main.js b/static/js/main.js index dd2fe67..44ca627 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -164,7 +164,7 @@ function get_admin(type) {