implement DELETE /emoji/{emoji_id} fro apiV4 (#6021)
implement GET /emoji/{emoji_id} for apiv4
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
62974f19cd
Коммит
80684ad69f
@@ -405,6 +405,17 @@ func (c *Context) RequireReportId() *Context {
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireEmojiId() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
|
||||
if len(c.Params.EmojiId) != 26 {
|
||||
c.SetInvalidUrlParam("emoji_id")
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireTeamName() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
|
||||
Ссылка в новой задаче
Block a user