Skip to content

Commit

Permalink
Update GetPosts() docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
joyeusenoelle committed May 29, 2019
1 parent 95e84a1 commit f271e53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database.go
Expand Up @@ -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
Expand Down

0 comments on commit f271e53

Please sign in to comment.