From 9e642afef6aa64bc93e8ff4f8ddbca3c5593ce13 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Fri, 14 Apr 2023 14:53:39 +0000 Subject: [PATCH] discord_embed: Remove the missing image check, forgot it was there. --- discord_embed/api/post.mjs | 4 ---- discord_embed/package.json | 2 +- discord_embed/public/index.html | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/discord_embed/api/post.mjs b/discord_embed/api/post.mjs index c4c171f..01776d6 100644 --- a/discord_embed/api/post.mjs +++ b/discord_embed/api/post.mjs @@ -60,10 +60,6 @@ Redirecting if (!ctx.req.body.video.startsWith('http')) { return 'Video link has to be a valid full url' } - - if (!ctx.req.body.image && !hasMedia) { - return 'Missing image link or file' - } if (ctx.req.body.image) { if (!ctx.req.body.image.startsWith('http')) { diff --git a/discord_embed/package.json b/discord_embed/package.json index bf42649..7e5943e 100644 --- a/discord_embed/package.json +++ b/discord_embed/package.json @@ -1,6 +1,6 @@ { "name": "discord_embed", - "version": "1.0.16", + "version": "1.0.17", "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 8a8b589..8f09bba 100644 --- a/discord_embed/public/index.html +++ b/discord_embed/public/index.html @@ -2,7 +2,7 @@ - Discord Embedder from AV1 server 1.0.16 + Discord Embedder from AV1 server 1.0.17 {{ if (imageLink) { }}