Refactor to use aerogo/database
This commit is contained in:
auth
main.gopages
database
editor
explore
forum
listimport
paypal
shop
statistics
threads
users
patches/export-aero-db
@ -12,7 +12,7 @@ const ThreadsPerPage = 20
|
||||
// Get forum category.
|
||||
func Get(ctx *aero.Context) string {
|
||||
tag := ctx.Get("tag")
|
||||
threads, _ := arn.GetThreadsByTag(tag)
|
||||
threads := arn.GetThreadsByTag(tag)
|
||||
arn.SortThreads(threads)
|
||||
|
||||
if len(threads) > ThreadsPerPage {
|
||||
|
Reference in New Issue
Block a user