From 4aafff7f83359531cb2e110f4b7c080e33407cc3 Mon Sep 17 00:00:00 2001 From: Jason Rossman Date: Wed, 26 Aug 2015 15:59:54 -0600 Subject: [PATCH] Fix getParentsPosts for postgresql --- store/sql_post_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/store/sql_post_store.go b/store/sql_post_store.go index 479caf8386..81405c620d 100644 --- a/store/sql_post_store.go +++ b/store/sql_post_store.go @@ -343,6 +343,7 @@ func (s SqlPostStore) getParentsPosts(channelId string, offset int, limit int) S WHERE ChannelId = :ChannelId1 AND DeleteAt = 0 + AND RootId <> '' ORDER BY CreateAt DESC LIMIT :Limit OFFSET :Offset) q3) q1 ON q1.RootId = q2.RootId WHERE