Upgraded to latest aero version

This commit is contained in:
2019-06-01 13:55:49 +09:00
parent ae591e5e7e
commit 28db818c37
196 changed files with 645 additions and 593 deletions

View File

@ -10,7 +10,7 @@ import (
)
// Joined shows the most popular joined groups.
func Joined(ctx *aero.Context) string {
func Joined(ctx aero.Context) error {
user := utils.GetUser(ctx)
if user == nil {

View File

@ -7,7 +7,7 @@ import (
)
// Latest shows the latest groups.
func Latest(ctx *aero.Context) string {
func Latest(ctx aero.Context) error {
groups := fetchGroups("")
sort.Slice(groups, func(i, j int) bool {

View File

@ -7,7 +7,7 @@ import (
)
// Popular shows the most popular groups.
func Popular(ctx *aero.Context) string {
func Popular(ctx aero.Context) error {
groups := fetchGroups("")
sort.Slice(groups, func(i, j int) bool {

View File

@ -14,7 +14,7 @@ const (
)
// render renders the groups page with the given groups.
func render(ctx *aero.Context, allGroups []*arn.Group) string {
func render(ctx aero.Context, allGroups []*arn.Group) error {
user := utils.GetUser(ctx)
index, _ := ctx.GetInt("index")