From 7a6eb69d9d3e425c26f8f0996f2440d9a8e193c9 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Thu, 21 Nov 2024 12:57:03 +0000 Subject: [PATCH] discord_embed: Fix when updating old discord links, it updates the input as well --- discord_embed/api/serve.mjs | 2 +- discord_embed/package.json | 2 +- discord_embed/public/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/discord_embed/api/serve.mjs b/discord_embed/api/serve.mjs index 41b70dc..e0a115e 100644 --- a/discord_embed/api/serve.mjs +++ b/discord_embed/api/serve.mjs @@ -170,7 +170,7 @@ Redirecting old: videoLink, new: newLink, }, 'Updating link') - videoLink = newLink + videoLink = ctx.state.video = newLink await ctx.db.safeCallProc('discord_embed.link_update', [id - 3843, videoLink]) } } diff --git a/discord_embed/package.json b/discord_embed/package.json index 855980a..693140f 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.27", + "version": "1.0.28", "port": 4120, "description": "AV1 discord server embed helper", "main": "index.js", diff --git a/discord_embed/public/index.html b/discord_embed/public/index.html index 5f06ef2..a70a0b6 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@ - Discord Embedder from AV1 server 1.0.25 + Discord Embedder from AV1 server 1.0.28 {{ if (imageLink) { }}