27 lines
700 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"
2019-06-03 09:32:43 +00:00
// "github.com/animenotifier/notify.moe/arn"
2018-11-24 06:57:52 +00:00
// "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.
2019-06-01 04:55:49 +00:00
// func GetFollowers(ctx aero.Context) error {
2018-11-24 06:57:52 +00:00
// 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
2019-11-17 07:59:34 +00:00
// return ctx.HTML(components.ProfileFollowers(followers, viewUser, arn.GetUserFromContext(ctx), ctx.Path()))
2017-07-21 09:01:34 +00:00
2018-11-24 06:57:52 +00:00
// }