Remove unused attribute

This commit is contained in:
Jan-Lukas Else 2023-09-23 20:21:42 +02:00
parent 1b39454d74
commit c57ae03502
1 changed files with 0 additions and 5 deletions

View File

@ -97,7 +97,6 @@ type configBlog struct {
Map *configGeoMap `mapstructure:"map"`
Contact *configContact `mapstructure:"contact"`
Announcement *configAnnouncement `mapstructure:"announcement"`
name string
// Configs read from database
hideOldContentWarning bool
hideShareButton bool
@ -453,10 +452,6 @@ func (a *goBlog) initConfig(logging bool) error {
if a.cfg.Blogs[a.cfg.DefaultBlog] == nil {
return errors.New("default blog does not exist")
}
// Set name attribute for every blog
for name, blog := range a.cfg.Blogs {
blog.name = name
}
// Check media storage config
if ms := a.cfg.Micropub.MediaStorage; ms != nil && ms.MediaURL != "" {
ms.MediaURL = strings.TrimSuffix(ms.MediaURL, "/")