From 0faf0330a29a29a84cae4ccfab21c8cba1334f3d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 18 Jul 2022 15:44:08 +0200 Subject: [PATCH] Fix hello world filter error --- peertube-plugin-hello-world/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peertube-plugin-hello-world/main.js b/peertube-plugin-hello-world/main.js index a72e527..30b6695 100644 --- a/peertube-plugin-hello-world/main.js +++ b/peertube-plugin-hello-world/main.js @@ -27,7 +27,7 @@ async function register ({ handler: (result, params) => { if (result.allowed === false) return result - if (params && params.body.email.includes('laposte.net')) { + if (params && params.body && params.body.email.includes('laposte.net')) { return { allowed: false, errorMessage: 'laposte.net emails are not allowed on this instance' } }