You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hugobot/export/release.go

15 lines
270 B
Go

package export
import (
"git.sp4ke.com/sp4ke/hugobot/v3/feeds"
"git.sp4ke.com/sp4ke/hugobot/v3/posts"
)
//
func ReleaseExport(exp Map, feed feeds.Feed, post posts.Post) error {
if feed.Section == "bulletin/releases" {
exp["data"] = post.JsonData
}
return nil
}