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.
18 lines
340 B
Go
18 lines
340 B
Go
package export
|
|
|
|
import (
|
|
"git.blob42.xyz/blob42/hugobot/v3/feeds"
|
|
"git.blob42.xyz/blob42/hugobot/v3/posts"
|
|
"strings"
|
|
)
|
|
|
|
func BulletinExport(exp Map, feed feeds.Feed, post posts.Post) error {
|
|
|
|
bulletinInfo := strings.Split(feed.Section, "/")
|
|
|
|
if bulletinInfo[0] == "bulletin" {
|
|
exp["bulletin_type"] = bulletinInfo[1]
|
|
}
|
|
return nil
|
|
}
|