Fixed unused parameters
This commit is contained in:
@ -1,13 +1,12 @@
|
||||
package thread
|
||||
|
||||
import (
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/notify.moe/arn"
|
||||
"github.com/animenotifier/notify.moe/assets"
|
||||
"github.com/animenotifier/notify.moe/utils"
|
||||
)
|
||||
|
||||
func getOpenGraph(ctx aero.Context, thread *arn.Thread) *arn.OpenGraph {
|
||||
func getOpenGraph(thread *arn.Thread) *arn.OpenGraph {
|
||||
openGraph := &arn.OpenGraph{
|
||||
Tags: map[string]string{
|
||||
"og:title": thread.Title,
|
||||
|
@ -23,6 +23,6 @@ func Get(ctx aero.Context) error {
|
||||
}
|
||||
|
||||
customCtx := ctx.(*middleware.OpenGraphContext)
|
||||
customCtx.OpenGraph = getOpenGraph(ctx, thread)
|
||||
customCtx.OpenGraph = getOpenGraph(thread)
|
||||
return ctx.HTML(components.Thread(thread, user))
|
||||
}
|
||||
|
Reference in New Issue
Block a user