From 69945cdb14d5c796779e01323bc948e7d8b9b574 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Wed, 4 Jan 2023 00:22:40 +0100 Subject: [PATCH] bla --- index.js | 10 +++++++++- static/js/main.js | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) 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) {
Demande de vérification par ${treasureData[entry].creator}
Activité: ${treasureData[entry].activity.title}
Description: ${treasureData[entry].desc}
-
Image: Lien
+
Image: Lien
UID: ${treasureData[entry].treasureUid}
UID: ${treasureData[entry].date}