19 lines
456 B
Go
Raw Normal View History

2018-11-21 09:12:29 +00:00
package group
import (
2019-06-03 09:32:43 +00:00
"github.com/animenotifier/notify.moe/arn"
2019-06-01 04:55:49 +00:00
"github.com/animenotifier/notify.moe/assets"
2018-11-21 09:12:29 +00:00
)
2019-06-05 07:18:04 +00:00
func getOpenGraph(group *arn.Group) *arn.OpenGraph {
2018-11-21 09:12:29 +00:00
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"),
2019-06-01 04:55:49 +00:00
"og:url": "https://" + assets.Domain + group.Link(),
2018-11-22 09:46:57 +00:00
"og:site_name": "notify.moe",
2018-11-21 09:12:29 +00:00
},
}
}