1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-04 05:56:23 -07:00

Remove "Verbosity" config field and rename "DebugMode" to "Verbose" for enabling command line output on errors

This commit is contained in:
Eggbertx 2023-12-27 17:07:33 -08:00
parent 138b41bf0a
commit 8e9543970a
9 changed files with 43 additions and 26 deletions

View file

@ -11,7 +11,7 @@ import (
// ValidReferer checks to make sure that the incoming request is from the same domain (or if debug mode is enabled)
func ValidReferer(request *http.Request) bool {
if config.GetDebugMode() {
if config.VerboseMode() {
return true
}
referer := request.Referer()