Upgraded to latest aero version
This commit is contained in:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user