mirror of
https://github.com/cwinfo/matterbridge.git
synced 2025-07-06 01:24:03 +00:00
Update dependencies (#1784)
This commit is contained in:
5
vendor/github.com/mattermost/mattermost-server/v6/model/emoji.go
generated
vendored
5
vendor/github.com/mattermost/mattermost-server/v6/model/emoji.go
generated
vendored
@ -78,9 +78,12 @@ func (emoji *Emoji) IsValid() *AppError {
|
||||
}
|
||||
|
||||
func IsValidEmojiName(name string) *AppError {
|
||||
if name == "" || len(name) > EmojiNameMaxLength || !IsValidAlphaNumHyphenUnderscorePlus(name) || inSystemEmoji(name) {
|
||||
if name == "" || len(name) > EmojiNameMaxLength || !IsValidAlphaNumHyphenUnderscorePlus(name) {
|
||||
return NewAppError("Emoji.IsValid", "model.emoji.name.app_error", nil, "", http.StatusBadRequest)
|
||||
}
|
||||
if inSystemEmoji(name) {
|
||||
return NewAppError("Emoji.IsValid", "model.emoji.system_emoji_name.app_error", nil, "", http.StatusBadRequest)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user