Renamed Channel.Description to Channel.Header on the server

Этот коммит содержится в:
hmhealey
2015-10-26 16:18:28 -04:00
родитель 95c464b167
Коммит 09b38404fa
8 изменённых файлов: 64 добавлений и 61 удалений

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

@@ -24,7 +24,7 @@ type Channel struct {
Type string `json:"type"`
DisplayName string `json:"display_name"`
Name string `json:"name"`
Description string `json:"description"`
Header string `json:"header"`
LastPostAt int64 `json:"last_post_at"`
TotalMsgCount int64 `json:"total_msg_count"`
ExtraUpdateAt int64 `json:"extra_update_at"`
@@ -89,8 +89,8 @@ func (o *Channel) IsValid() *AppError {
return NewAppError("Channel.IsValid", "Invalid type", "id="+o.Id)
}
if len(o.Description) > 1024 {
return NewAppError("Channel.IsValid", "Invalid description", "id="+o.Id)
if len(o.Header) > 1024 {
return NewAppError("Channel.IsValid", "Invalid header", "id="+o.Id)
}
if len(o.CreatorId) > 26 {