Fix order of post list returned (#10183)

This commit is contained in:
Daniel Schalla
2019-01-28 12:20:05 +01:00
committed by GitHub
parent ce2c7110d3
commit 144686148b

View File

@@ -217,9 +217,10 @@ func getFlaggedPostsForUser(c *Context, w http.ResponseWriter, r *http.Request)
pl.AddPost(post)
pl.AddOrder(post.Id)
}
pl.SortByCreateAt()
if err != nil {
c.Err = err
return