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() {
|
flow.Parallel(func() {
|
||||||
forumActivity, _ = arn.GetForumActivityCached()
|
forumActivity, _ = arn.GetForumActivityCached()
|
||||||
}, func() {
|
}, func() {
|
||||||
animeList, err := arn.GetAnimeList(user)
|
animeList, err := arn.GetAnimeList(user.ID)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
|
@ -27,7 +27,7 @@ func GetStatsByUser(ctx *aero.Context) string {
|
|||||||
return ctx.Error(http.StatusNotFound, "User not found", err)
|
return ctx.Error(http.StatusNotFound, "User not found", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
animeList, err := arn.GetAnimeList(viewUser)
|
animeList, err := arn.GetAnimeList(viewUser.ID)
|
||||||
animeList.PrefetchAnime()
|
animeList.PrefetchAnime()
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -112,9 +112,10 @@ component Settings(user *arn.User)
|
|||||||
Icon("picture-o")
|
Icon("picture-o")
|
||||||
span Avatar
|
span Avatar
|
||||||
|
|
||||||
.widget-input
|
.widget-input(data-api="/api/user/" + user.ID)
|
||||||
label(for="AvatarSource") Source:
|
label(for="Avatar.Source") Source:
|
||||||
select.widget-element.action(id="AvatarSource", data-field="AvatarSource", value="Gravatar", data-action="save", data-trigger="change")
|
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
|
option(value="Gravatar") Gravatar
|
||||||
|
|
||||||
if "Gravatar" == "Gravatar"
|
if "Gravatar" == "Gravatar"
|
||||||
|
Loading…
Reference in New Issue
Block a user