From 1e34cf8ab00a56318290b3f18acd6334c971944f Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Mon, 7 Dec 2015 14:56:46 -0500 Subject: Make sure posts in threads are included in getPosts DB query --- store/sql_post_store.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'store') diff --git a/store/sql_post_store.go b/store/sql_post_store.go index 035309e21..be770c09e 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -571,7 +571,8 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) S AND DeleteAt = 0 ORDER BY CreateAt DESC LIMIT :Limit OFFSET :Offset) q3 - WHERE q3.RootId != '') q1 ON q1.RootId = q2.Id + WHERE q3.RootId != '') q1 + ON q1.RootId = q2.Id OR q1.RootId = q2.RootId WHERE ChannelId = :ChannelId2 AND DeleteAt = 0 -- cgit v1.2.3-1-g7c22