1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

WTF-42 WIP Add FeedReader, an RSS/Atom feed reader

This commit is contained in:
Chris Cummer
2019-07-03 21:10:52 -07:00
parent 9d38f5439d
commit f19f1ee86d
9 changed files with 240 additions and 12 deletions

View File

@@ -29,7 +29,7 @@ type Settings struct {
// NewSettingsFromYAML creates a new settings instance from a YAML config block
func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings {
settings := Settings{
settings := &Settings{
common: cfg.NewCommonSettingsFromModule(name, defaultTitle, ymlConfig, globalConfig),
accounts: wtf.ToStrs(ymlConfig.UList("accounts")),
@@ -45,7 +45,7 @@ func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *co
settings.common.RefreshInterval = minRefreshInterval
}
return &settings
return settings
}
// HasSince returns TRUE if there's a valid "since" value setting, FALSE if there is not

View File

@@ -72,7 +72,7 @@ func (widget *Widget) contentFrom(data []*Status) string {
color = widget.settings.colors.pwned
}
str = str + fmt.Sprintf(" [%s]%s[white]\n", color, stat.Account)
str += fmt.Sprintf(" [%s]%s[white]\n", color, stat.Account)
}
return str