discord_embed: Post now auto-skips /health xD
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
Jonatan Nilsson 2022-10-17 14:57:51 +00:00
parent a13ac57bc8
commit b8ed6a1c99

View file

@ -104,13 +104,16 @@ export default class IndexPost {
if (!error) { if (!error) {
try { try {
let params = [ let id = 'health'
ctx.state.video, while (id === health) {
ctx.state.image, let params = [
ctx.req.ip, ctx.state.video,
] ctx.state.image,
let res = await ctx.db.safeCallProc('discord_embed.link_add', params) ctx.req.ip,
let id = AlphabeticID.encode(res.first[0].id + 3843) ]
let res = await ctx.db.safeCallProc('discord_embed.link_add', params)
id = AlphabeticID.encode(res.first[0].id + 3843)
}
redirect = `${this.frontend}/${id}` redirect = `${this.frontend}/${id}`
} }
catch (err) { catch (err) {