27 lines
681 B
Go
Raw Normal View History

2017-07-21 09:01:34 +00:00
package profile
2018-11-24 06:57:52 +00:00
// import (
// "net/http"
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// "github.com/aerogo/aero"
// "github.com/animenotifier/arn"
// "github.com/animenotifier/notify.moe/components"
// "github.com/animenotifier/notify.moe/utils"
// )
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// // GetFollowers shows the followers of a particular user.
// func GetFollowers(ctx *aero.Context) string {
// nick := ctx.Get("nick")
// viewUser, err := arn.GetUserByNick(nick)
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// if err != nil {
// return ctx.Error(http.StatusNotFound, "User not found", err)
// }
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// followers := viewUser.Followers()
// arn.SortUsersLastSeenFirst(followers)
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// return ctx.HTML(components.ProfileFollowers(followers, viewUser, utils.GetUser(ctx), ctx.URI()))
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// }