19 lines
452 B
Go
Raw Normal View History

2018-11-21 09:12:29 +00:00
package group
import (
"github.com/aerogo/aero"
"github.com/animenotifier/arn"
)
func getOpenGraph(ctx *aero.Context, group *arn.Group) *arn.OpenGraph {
return &arn.OpenGraph{
Tags: map[string]string{
2018-11-22 09:46:57 +00:00
"og:title": group.Name,
"og:description": group.Tagline,
"og:image": "https:" + group.ImageLink("large"),
"og:url": "https://" + ctx.App.Config.Domain + group.Link(),
"og:site_name": "notify.moe",
2018-11-21 09:12:29 +00:00
},
}
}