Implement some post endpoints for APIv4 (#5353)
* Implement POST /posts endpoint for APIv4
* Implement GET /channels/{channel_id}/posts endpoint for APIv4
* Implement GET /posts/{post_id} endpoint for APIv4
* Implement GET /posts/{post_id}/thread endpoint for APIv4
* Skip team get if it's a DM channel in handlePostEvents
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
260f1111e8
Коммит
e4effd0c15
@@ -75,7 +75,12 @@ func (o *PostList) Etag() string {
|
||||
}
|
||||
}
|
||||
|
||||
return Etag(id, t)
|
||||
orderId := ""
|
||||
if len(o.Order) > 0 {
|
||||
orderId = o.Order[0]
|
||||
}
|
||||
|
||||
return Etag(orderId, id, t)
|
||||
}
|
||||
|
||||
func (o *PostList) IsChannelId(channelId string) bool {
|
||||
|
||||
Ссылка в новой задаче
Block a user