summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/model/command.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2016-04-16 20:39:43 +0200
committerWim <wim@42.be>2016-04-16 20:39:43 +0200
commit51265d546409de12483531773fc1fbc73453ae6e (patch)
tree924b5be51b320a6fe05784f2495a2bfcfc7a3242 /vendor/github.com/mattermost/platform/model/command.go
parentde4c7804101a47a01d0c9b88ea34d2b153e2b6b9 (diff)
downloadmatterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.tar.gz
matterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.tar.bz2
matterbridge-msglm-51265d546409de12483531773fc1fbc73453ae6e.zip
Sync with mattermost 2.2.0 release
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/command.go')
-rw-r--r--vendor/github.com/mattermost/platform/model/command.go11
1 files changed, 1 insertions, 10 deletions
diff --git a/vendor/github.com/mattermost/platform/model/command.go b/vendor/github.com/mattermost/platform/model/command.go
index b854ae76..56d88f13 100644
--- a/vendor/github.com/mattermost/platform/model/command.go
+++ b/vendor/github.com/mattermost/platform/model/command.go
@@ -29,7 +29,6 @@ type Command struct {
AutoCompleteDesc string `json:"auto_complete_desc"`
AutoCompleteHint string `json:"auto_complete_hint"`
DisplayName string `json:"display_name"`
- Description string `json:"description"`
URL string `json:"url"`
}
@@ -99,7 +98,7 @@ func (o *Command) IsValid() *AppError {
return NewLocAppError("Command.IsValid", "model.command.is_valid.team_id.app_error", nil, "")
}
- if len(o.Trigger) > 128 {
+ if len(o.Trigger) > 1024 {
return NewLocAppError("Command.IsValid", "model.command.is_valid.trigger.app_error", nil, "")
}
@@ -115,14 +114,6 @@ func (o *Command) IsValid() *AppError {
return NewLocAppError("Command.IsValid", "model.command.is_valid.method.app_error", nil, "")
}
- if len(o.DisplayName) > 64 {
- return NewLocAppError("Command.IsValid", "model.command.is_valid.display_name.app_error", nil, "")
- }
-
- if len(o.Description) > 128 {
- return NewLocAppError("Command.IsValid", "model.command.is_valid.description.app_error", nil, "")
- }
-
return nil
}