Bots in separate directory now
This commit is contained in:
parent
360f9f9ce2
commit
808a29756d
@ -40,7 +40,7 @@ func dashboard(ctx *aero.Context) string {
|
||||
flow.Parallel(func() {
|
||||
forumActivity, _ = arn.GetForumActivityCached()
|
||||
}, func() {
|
||||
animeList, err := arn.GetAnimeList(user)
|
||||
animeList, err := arn.GetAnimeList(user.ID)
|
||||
|
||||
if err != nil {
|
||||
return
|
||||
|
@ -27,7 +27,7 @@ func GetStatsByUser(ctx *aero.Context) string {
|
||||
return ctx.Error(http.StatusNotFound, "User not found", err)
|
||||
}
|
||||
|
||||
animeList, err := arn.GetAnimeList(viewUser)
|
||||
animeList, err := arn.GetAnimeList(viewUser.ID)
|
||||
animeList.PrefetchAnime()
|
||||
|
||||
if err != nil {
|
||||
|
@ -112,9 +112,10 @@ component Settings(user *arn.User)
|
||||
Icon("picture-o")
|
||||
span Avatar
|
||||
|
||||
.widget-input
|
||||
label(for="AvatarSource") Source:
|
||||
select.widget-element.action(id="AvatarSource", data-field="AvatarSource", value="Gravatar", data-action="save", data-trigger="change")
|
||||
.widget-input(data-api="/api/user/" + user.ID)
|
||||
label(for="Avatar.Source") Source:
|
||||
select.widget-element.action(id="Avatar.Source", data-field="Avatar.Source", value=user.Avatar.Source, data-action="save", data-trigger="change")
|
||||
option(value="") Automatic
|
||||
option(value="Gravatar") Gravatar
|
||||
|
||||
if "Gravatar" == "Gravatar"
|
||||
|
Loading…
Reference in New Issue
Block a user