Cleanup
This commit is contained in:
@ -6,7 +6,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
// Get anime page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
id := ctx.Get("id")
|
||||
anime, err := arn.GetAnime(id)
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
|
||||
const maxPosts = 5
|
||||
|
||||
// Get ...
|
||||
// Get dashboard.
|
||||
func Get(ctx *aero.Context) string {
|
||||
user := utils.GetUser(ctx)
|
||||
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
|
||||
const threadsPerPage = 20
|
||||
|
||||
// Get ...
|
||||
// Get forum category.
|
||||
func Get(ctx *aero.Context) string {
|
||||
tag := ctx.Get("tag")
|
||||
threads, _ := arn.GetThreadsByTag(tag)
|
||||
|
@ -5,7 +5,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/pages/forum"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
// Get forums page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
return forum.Get(ctx)
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
// Get post.
|
||||
func Get(ctx *aero.Context) string {
|
||||
id := ctx.Get("id")
|
||||
post, err := arn.GetPost(id)
|
||||
|
@ -9,7 +9,7 @@ import (
|
||||
|
||||
const maxPosts = 5
|
||||
|
||||
// Get ...
|
||||
// Get user profile page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
nick := ctx.Get("nick")
|
||||
viewUser, err := arn.GetUserByNick(nick)
|
||||
|
@ -1,4 +1,4 @@
|
||||
package threads
|
||||
package profile
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
@ -8,8 +8,8 @@ import (
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// GetByUser ...
|
||||
func GetByUser(ctx *aero.Context) string {
|
||||
// GetThreadsByUser shows all forum threads of a particular user.
|
||||
func GetThreadsByUser(ctx *aero.Context) string {
|
||||
nick := ctx.Get("nick")
|
||||
user, err := arn.GetUserByNick(nick)
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"github.com/aerogo/aero"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
// Get search page.
|
||||
func Get(ctx *aero.Context) string {
|
||||
// titleCount := 0
|
||||
// animeCount := 0
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"github.com/animenotifier/notify.moe/components"
|
||||
)
|
||||
|
||||
// Get ...
|
||||
// Get thread.
|
||||
func Get(ctx *aero.Context) string {
|
||||
id := ctx.Get("id")
|
||||
thread, err := arn.GetThread(id)
|
||||
|
Reference in New Issue
Block a user