mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 17:58:45 +02:00
fix(notif): use markdown format if invalid
This commit is contained in:
@@ -30,7 +30,7 @@ var (
|
||||
|
||||
// Validate implements the utils.CustomValidator interface.
|
||||
func (base *ProviderBase) Validate() gperr.Error {
|
||||
if base.Format == nil {
|
||||
if base.Format == nil || base.Format.string == "" {
|
||||
base.Format = LogFormatMarkdown
|
||||
}
|
||||
if !strings.HasPrefix(base.URL, "http://") && !strings.HasPrefix(base.URL, "https://") {
|
||||
|
||||
Reference in New Issue
Block a user