Changed post searching to allow searching by multiple users/channels

Этот коммит содержится в:
hmhealey
2015-10-23 17:28:02 -04:00
родитель 2ccf80d91d
Коммит 2383d5dd37
6 изменённых файлов: 161 добавлений и 77 удалений

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

@@ -54,6 +54,15 @@ func (o *PostList) AddPost(post *Post) {
o.Posts[post.Id] = post
}
func (o *PostList) Extend(other *PostList) {
for _, postId := range other.Order {
if _, ok := o.Posts[postId]; !ok {
o.AddPost(other.Posts[postId])
o.AddOrder(postId)
}
}
}
func (o *PostList) Etag() string {
id := "0"