update image validation
This commit is contained in:
@@ -39,8 +39,8 @@ type UserActivityForm struct {
|
||||
}
|
||||
|
||||
func (u UserActivityForm) Validate() error {
|
||||
if !strings.HasPrefix(u.Image, "https://m.360buyimg.com") {
|
||||
return errors.New("不是京东图床链接")
|
||||
if !strings.HasPrefix(u.Image, "https://") {
|
||||
return errors.New("不是图床链接")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user