Deleted utils.GetUser
This commit is contained in:
@ -7,7 +7,6 @@ import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
// Filter filters the anime for the explore page.
|
||||
@ -16,7 +15,7 @@ func Filter(ctx aero.Context) error {
|
||||
season := ctx.Get("season")
|
||||
status := ctx.Get("status")
|
||||
typ := ctx.Get("type")
|
||||
user := utils.GetUser(ctx)
|
||||
user := arn.GetUserFromContext(ctx)
|
||||
now := time.Now()
|
||||
|
||||
if year == "" {
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
"github.com/animenotifier/notify.moe/utils/infinitescroll"
|
||||
)
|
||||
|
||||
@ -19,7 +18,7 @@ const (
|
||||
|
||||
// AnimeByAverageColor returns all anime with an image in the given color.
|
||||
func AnimeByAverageColor(ctx aero.Context) error {
|
||||
user := utils.GetUser(ctx)
|
||||
user := arn.GetUserFromContext(ctx)
|
||||
color := ctx.Get("color")
|
||||
index, _ := ctx.GetInt("index")
|
||||
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
// Sequels ...
|
||||
func Sequels(ctx aero.Context) error {
|
||||
nick := ctx.Get("nick")
|
||||
user := utils.GetUser(ctx)
|
||||
user := arn.GetUserFromContext(ctx)
|
||||
viewUser, err := arn.GetUserByNick(nick)
|
||||
|
||||
if err != nil {
|
||||
|
@ -14,7 +14,7 @@ const minYear = 1963
|
||||
|
||||
// Get ...
|
||||
func Get(ctx aero.Context) error {
|
||||
user := utils.GetUser(ctx)
|
||||
user := arn.GetUserFromContext(ctx)
|
||||
maxYear := time.Now().Year() - 1
|
||||
hallOfFameEntries := []*utils.HallOfFameEntry{}
|
||||
|
||||
|
Reference in New Issue
Block a user