From da5f46487f85de89d9a20031e2bdbae1dbee2e26 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jul 2022 11:26:00 +0200 Subject: Fix plugin filter test --- server/tests/fixtures/peertube-plugin-test/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js index 7715ab6e8..2f3809215 100644 --- a/server/tests/fixtures/peertube-plugin-test/main.js +++ b/server/tests/fixtures/peertube-plugin-test/main.js @@ -192,7 +192,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora registerHook({ target: 'filter:api.user.signup.allowed.result', handler: (result, params) => { - if (params && params.body.email.includes('jma')) { + if (params && params.body && params.body.email && params.body.email.includes('jma')) { return { allowed: false, errorMessage: 'No jma' } } -- cgit v1.2.3