diff options
author | Nassim Bounouas <NassimBounouas@users.noreply.github.com> | 2019-06-21 08:49:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-06-21 08:49:35 +0200 |
commit | 4e9fa5b7e9ca6030a5fe2e9b0520bf8fa18e5877 (patch) | |
tree | f7fb09aa655f954b8d9833cd2215f6fada5721a6 /server/controllers | |
parent | d1ea2a988d05e1eca4066efb99c5f943f5267a78 (diff) | |
download | PeerTube-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')
-rw-r--r-- | server/controllers/api/server/contact.ts | 2 |
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', | |||
14 | async function contactAdministrator (req: express.Request, res: express.Response) { | 14 | async 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 | ||