Add default settings for ChannelType
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter Stuifzand 2019-05-09 21:41:54 +02:00
parent ae6e3f0100
commit f039df69a5
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -348,6 +348,14 @@ func (h *mainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
} else {
page.CurrentSetting = channelSetting{}
}
// TODO: similar code is found in timeline.go
if page.CurrentSetting.ChannelType == "" {
if v.UID == "notifications" {
page.CurrentSetting.ChannelType = "stream"
} else {
page.CurrentSetting.ChannelType = "sorted-set"
}
}
break
}
}