From f271e53925d77c4f183759757f2452baf5902b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABlle=20Anthony?= Date: Wed, 29 May 2019 12:03:01 -0400 Subject: [PATCH] Update GetPosts() docstring --- database.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/database.go b/database.go index 31f8c06..e26c6c6 100644 --- a/database.go +++ b/database.go @@ -1062,8 +1062,9 @@ func (db *datastore) GetPostsCount(c *CollectionObj, includeFuture bool) { c.TotalPosts = int(count) } -// GetPosts retrieves all standard (non-pinned) posts for the given Collection. +// GetPosts retrieves all posts for the given Collection. // It will return future posts if `includeFuture` is true. +// It will include only standard (non-pinned) posts unless `includePinned` is true. // TODO: change includeFuture to isOwner, since that's how it's used func (db *datastore) GetPosts(c *Collection, page int, includeFuture, forceRecentFirst, includePinned bool) (*[]PublicPost, error) { collID := c.ID