mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 20:42:25 -05:00
[feature] Allow admins to send test emails (#1620)
* [feature] Allow admins to send test emails * implement unwrap on new error type * add + use gtserror types * GoToSocial Email Test -> GoToSocial Test Email * add + use getInstance db call * removed unused "unknown" error type
This commit is contained in:
parent
d5529d6c9f
commit
196cd88b1c
17 changed files with 460 additions and 83 deletions
|
|
@ -183,3 +183,9 @@ type MediaCleanupRequest struct {
|
|||
// If value is not specified, the value of media-remote-cache-days in the server config will be used.
|
||||
RemoteCacheDays *int `form:"remote_cache_days" json:"remote_cache_days" xml:"remote_cache_days"`
|
||||
}
|
||||
|
||||
// AdminSendTestEmailRequest models a test email send request (woah).
|
||||
type AdminSendTestEmailRequest struct {
|
||||
// Email address to send the test email to.
|
||||
Email string `form:"email" json:"email" xml:"email"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue