Refactor to use aerogo/database

This commit is contained in:
2017-10-27 09:11:56 +02:00
parent c0d7b0d2df
commit b07a98ed32
18 changed files with 52 additions and 164 deletions

View File

@ -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 {