19 lines
456 B
Go
Raw Normal View History

2018-11-21 18:12:29 +09:00
package group
import (
2019-06-03 18:32:43 +09:00
"github.com/animenotifier/notify.moe/arn"
2019-06-01 13:55:49 +09:00
"github.com/animenotifier/notify.moe/assets"
2018-11-21 18:12:29 +09:00
)
2019-06-05 16:18:04 +09:00
func getOpenGraph(group *arn.Group) *arn.OpenGraph {
2018-11-21 18:12:29 +09:00
return &arn.OpenGraph{
Tags: map[string]string{
2018-11-22 18:46:57 +09:00
"og:title": group.Name,
"og:description": group.Tagline,
"og:image": "https:" + group.ImageLink("large"),
2019-06-01 13:55:49 +09:00
"og:url": "https://" + assets.Domain + group.Link(),
2018-11-22 18:46:57 +09:00
"og:site_name": "notify.moe",
2018-11-21 18:12:29 +09:00
},
}
}