discord_embed: Fix when updating old discord links, it updates the input as well
Some checks failed
/ deploy (push) Failing after 1m4s

This commit is contained in:
Jonatan Nilsson 2024-11-21 12:57:03 +00:00
parent 86eff6d033
commit 7a6eb69d9d
3 changed files with 3 additions and 3 deletions

View file

@ -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])
}
}

View file

@ -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",

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
<title>Discord Embedder from AV1 server 1.0.25</title>
<title>Discord Embedder from AV1 server 1.0.28</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
{{ if (imageLink) { }}