Some improvements

This commit is contained in:
2016-12-06 12:36:31 +09:00
parent c2d9817ec5
commit 1268aa8ba6
21 changed files with 72 additions and 273 deletions

View File

@ -1,8 +1,6 @@
package threads
import (
"sort"
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
"github.com/animenotifier/notify.moe/components"
@ -21,7 +19,7 @@ func Get(ctx *aero.Context) string {
return post.ThreadID == thread.ID
})
sort.Sort(replies)
arn.SortPostsLatestLast(replies)
if filterErr != nil {
return ctx.Error(500, "Error fetching thread replies", err)