diff --git a/discord_embed/api/post.mjs b/discord_embed/api/post.mjs index aa65a00..c4c171f 100644 --- a/discord_embed/api/post.mjs +++ b/discord_embed/api/post.mjs @@ -80,7 +80,7 @@ Redirecting /** POST: / */ async createNewLink(ctx) { ctx.state.video = ctx.req.body.video - ctx.state.image = ctx.req.body.image + ctx.state.image = ctx.req.body.image || 'https://cdn.nfp.is/av1/empty.png' let rateLimited = false let redisKey = 'ratelimit_' + ctx.req.ip.replace(/:/g, '-') diff --git a/discord_embed/package.json b/discord_embed/package.json index ef94843..ff35413 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.14", + "version": "1.0.15", "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 64161f9..db43712 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@
-