mirror of https://github.com/jlelse/GoBlog
Remove unused config
This commit is contained in:
parent
f073c53004
commit
7364cfed59
|
@ -88,7 +88,7 @@ func (p *post) toASNote() *asNote {
|
|||
// Content
|
||||
as.Content = string(p.html())
|
||||
// Attachments
|
||||
if images := p.Parameters[appConfig.Blogs[p.Blog].ActivityStreams.ImagesParameter]; len(images) > 0 {
|
||||
if images := p.Parameters["images"]; len(images) > 0 {
|
||||
for _, image := range images {
|
||||
as.Attachment = append(as.Attachment, &asAttachment{
|
||||
Type: "Image",
|
||||
|
@ -109,7 +109,7 @@ func (p *post) toASNote() *asNote {
|
|||
}
|
||||
}
|
||||
// Reply
|
||||
if replyLink := p.firstParameter(appConfig.Blogs[p.Blog].ActivityStreams.ReplyParameter); replyLink != "" {
|
||||
if replyLink := p.firstParameter("replylink"); replyLink != "" {
|
||||
as.InReplyTo = replyLink
|
||||
}
|
||||
return as
|
||||
|
|
|
@ -54,7 +54,6 @@ type configBlog struct {
|
|||
Taxonomies []*taxonomy `mapstructure:"taxonomies"`
|
||||
Menus map[string]*menu `mapstructure:"menus"`
|
||||
Photos *photos `mapstructure:"photos"`
|
||||
ActivityStreams *activityStreams `mapstructure:"activitystreams"`
|
||||
DefaultSection string `mapstructure:"defaultsection"`
|
||||
CustomPages []*customPage `mapstructure:"custompages"`
|
||||
}
|
||||
|
@ -89,12 +88,6 @@ type photos struct {
|
|||
Description string `mapstructure:"description"`
|
||||
}
|
||||
|
||||
type activityStreams struct {
|
||||
Enabled bool `mapstructure:"enabled"`
|
||||
ReplyParameter string `mapstructure:"replyParameter"`
|
||||
ImagesParameter string `mapstructure:"imagesParameter"`
|
||||
}
|
||||
|
||||
type customPage struct {
|
||||
Path string `mapstructure:"path"`
|
||||
Template string `mapstructure:"template"`
|
||||
|
|
Loading…
Reference in New Issue