diff options
author | Chocobozzz <me@florianbigard.com> | 2019-01-10 11:12:41 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-01-10 11:32:38 +0100 |
commit | d3e56c0c4b307c99e83fbafb7f2c5884cbc20055 (patch) | |
tree | 39976ee10a49fa2b9d7eb87437f59c872e7db0b8 /server/middlewares | |
parent | 3866f1a02f73665541468fbadcc3cd2cc459aef2 (diff) | |
download | PeerTube-d3e56c0c4b307c99e83fbafb7f2c5884cbc20055.tar.gz PeerTube-d3e56c0c4b307c99e83fbafb7f2c5884cbc20055.tar.zst PeerTube-d3e56c0c4b307c99e83fbafb7f2c5884cbc20055.zip |
Implement contact form in the client
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/server.ts b/server/middlewares/validators/server.ts index d82e19230..d85afc2ff 100644 --- a/server/middlewares/validators/server.ts +++ b/server/middlewares/validators/server.ts | |||
@@ -50,7 +50,7 @@ const contactAdministratorValidator = [ | |||
50 | .end() | 50 | .end() |
51 | } | 51 | } |
52 | 52 | ||
53 | if (Emailer.Instance.isEnabled() === false) { | 53 | if (Emailer.isEnabled() === false) { |
54 | return res | 54 | return res |
55 | .status(409) | 55 | .status(409) |
56 | .send({ error: 'Emailer is not enabled on this instance.' }) | 56 | .send({ error: 'Emailer is not enabled on this instance.' }) |