Add default settings for ChannelType
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
ae6e3f0100
commit
f039df69a5
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user