[XYZ-6] Add sampledata platform command (#8027)

* Add fake dependency

* [XYZ-6] Add sampledata platform command

* Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
Этот коммит содержится в:
Jesús Espino
2018-01-11 16:57:47 +01:00
коммит произвёл Joram Wilander
родитель 0a9200c35d
Коммит 6990d052d5
125 изменённых файлов: 9686 добавлений и 58 удалений

Просмотреть файл

@@ -22,7 +22,7 @@ func saveReaction(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if len(reaction.UserId) != 26 || len(reaction.PostId) != 26 || len(reaction.EmojiName) == 0 || len(reaction.EmojiName) > 64 {
if len(reaction.UserId) != 26 || len(reaction.PostId) != 26 || len(reaction.EmojiName) == 0 || len(reaction.EmojiName) > model.EMOJI_NAME_MAX_LENGTH {
c.Err = model.NewAppError("saveReaction", "api.reaction.save_reaction.invalid.app_error", nil, "", http.StatusBadRequest)
return
}