Some improvements
This commit is contained in:
@ -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)
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
.post
|
||||
vertical
|
||||
margin-bottom 1rem
|
||||
margin-bottom 0.75rem
|
||||
|
||||
> 600px
|
||||
.post
|
||||
|
Reference in New Issue
Block a user