mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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
This commit is contained in:
committed by
Chocobozzz
parent
d1ea2a988d
commit
4e9fa5b7e9
@@ -5,6 +5,7 @@ function sendContactForm (options: {
|
||||
url: string,
|
||||
fromEmail: string,
|
||||
fromName: string,
|
||||
subject: string,
|
||||
body: string,
|
||||
expectedStatus?: number
|
||||
}) {
|
||||
@@ -13,6 +14,7 @@ function sendContactForm (options: {
|
||||
const body: ContactForm = {
|
||||
fromEmail: options.fromEmail,
|
||||
fromName: options.fromName,
|
||||
subject: options.subject,
|
||||
body: options.body
|
||||
}
|
||||
return request(options.url)
|
||||
|
||||
Reference in New Issue
Block a user