Fixed unused parameters
This commit is contained in:
@ -27,6 +27,6 @@ func Feed(ctx aero.Context) error {
|
||||
}
|
||||
|
||||
customCtx := ctx.(*middleware.OpenGraphContext)
|
||||
customCtx.OpenGraph = getOpenGraph(ctx, group)
|
||||
customCtx.OpenGraph = getOpenGraph(group)
|
||||
return ctx.HTML(components.GroupFeed(group, member, user))
|
||||
}
|
||||
|
@ -27,6 +27,6 @@ func Info(ctx aero.Context) error {
|
||||
}
|
||||
|
||||
customCtx := ctx.(*middleware.OpenGraphContext)
|
||||
customCtx.OpenGraph = getOpenGraph(ctx, group)
|
||||
customCtx.OpenGraph = getOpenGraph(group)
|
||||
return ctx.HTML(components.GroupInfo(group, member, user))
|
||||
}
|
||||
|
@ -27,6 +27,6 @@ func Members(ctx aero.Context) error {
|
||||
}
|
||||
|
||||
customCtx := ctx.(*middleware.OpenGraphContext)
|
||||
customCtx.OpenGraph = getOpenGraph(ctx, group)
|
||||
customCtx.OpenGraph = getOpenGraph(group)
|
||||
return ctx.HTML(components.GroupMembers(group, member, user))
|
||||
}
|
||||
|
@ -1,12 +1,11 @@
|
||||
package group
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/assets"
|
||||
)
|
||||
|
||||
func getOpenGraph(ctx aero.Context, group *arn.Group) *arn.OpenGraph {
|
||||
func getOpenGraph(group *arn.Group) *arn.OpenGraph {
|
||||
return &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": group.Name,
|
||||
|
Reference in New Issue
Block a user