Compare commits
No commits in common. "main" and "0.0.25" have entirely different histories.
1 changed files with 2 additions and 2 deletions
|
|
@ -263,14 +263,14 @@ func Initialize(Host string, r *http.Request) (State, error) {
|
|||
if dark := getCookie(r, "Dark"); dark != "" {
|
||||
state.Dark = dark != "0"
|
||||
} else {
|
||||
state.Dark = os.Getenv("DARK") != ""
|
||||
state.Dark = os.Getenv("DARK") != "0"
|
||||
}
|
||||
state.ShowNSFW = getCookie(r, "ShowNSFW") != ""
|
||||
state.HideInstanceNames = getCookie(r, "HideInstanceNames") != ""
|
||||
if hide := getCookie(r, "HideThumbnails"); hide != "" {
|
||||
state.HideThumbnails = hide != "0"
|
||||
} else {
|
||||
state.HideThumbnails = os.Getenv("HIDE_THUMBNAILS") != ""
|
||||
state.HideThumbnails = os.Getenv("HIDE_THUMBNAILS") != "0"
|
||||
}
|
||||
state.ParseQuery(r.URL.RawQuery)
|
||||
if state.Sort == "" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue