Fix hello world filter error

This commit is contained in:
Chocobozzz 2022-07-18 15:44:08 +02:00
parent d61ee5c504
commit 0faf0330a2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE

View File

@ -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' }
}