This commit is contained in:
lesion
2022-05-03 18:21:37 +02:00
parent 7d38b5d44e
commit 2c4c0c3ead

View File

@@ -426,7 +426,7 @@ const eventController = {
}
if (req.file || body.image_url) {
if (body.image_url) {
if (body.image_url && /^https?:\/\//.test(body.image_url)) {
req.file = await helpers.getImageFromURL(body.image_url)
}