aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorNassim Bounouas <NassimBounouas@users.noreply.github.com>2019-06-21 08:49:35 +0200
committerChocobozzz <me@florianbigard.com>2019-06-21 08:49:35 +0200
commit4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877 (patch)
treef7fb09aa655f954b8d9833cd2215f6fada5721a6 /server/controllers/api
parentd1ea2a988d05e1eca4066efb99c5f943f5267a78 (diff)
downloadPeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.tar.gz
PeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.tar.zst
PeerTube-4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877.zip
Feature/subject in contact form (#1926)
* #1915 Add a subject to contact form and add it to email sent * #1915 Add subject to contact form tests * #1915 Contact form test corrected && tslint correction
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/server/contact.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/server/contact.ts b/server/controllers/api/server/contact.ts
index b1144c94e..de02ffc0b 100644
--- a/server/controllers/api/server/contact.ts
+++ b/server/controllers/api/server/contact.ts
@@ -14,7 +14,7 @@ contactRouter.post('/contact',
14async function contactAdministrator (req: express.Request, res: express.Response) { 14async function contactAdministrator (req: express.Request, res: express.Response) {
15 const data = req.body as ContactForm 15 const data = req.body as ContactForm
16 16
17 await Emailer.Instance.addContactFormJob(data.fromEmail, data.fromName, data.body) 17 await Emailer.Instance.addContactFormJob(data.fromEmail, data.fromName, data.subject, data.body)
18 18
19 await Redis.Instance.setContactFormIp(req.ip) 19 await Redis.Instance.setContactFormIp(req.ip)
20 20