User should always be last function parameter
This commit is contained in:
parent
9c198dc1f7
commit
256632e817
@ -39,5 +39,5 @@ func Get(ctx *aero.Context) string {
|
||||
return ctx.Error(http.StatusNotFound, "Anime episode not found")
|
||||
}
|
||||
|
||||
return ctx.HTML(components.AnimeEpisode(anime, episode, user, episodeIndex))
|
||||
return ctx.HTML(components.AnimeEpisode(anime, episode, episodeIndex, user))
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, user *arn.User, episodeIndex int)
|
||||
component AnimeEpisode(anime *arn.Anime, episode *arn.AnimeEpisode, episodeIndex int, user *arn.User)
|
||||
h1
|
||||
a(href=anime.Link())= anime.Title.ByUser(user)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user