From 30714d5e76a94947a49487f526e48a996f1d9eaa Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Fri, 14 May 2021 09:46:04 -0700 Subject: tripcode empty fix --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 378b767..bd88c41 100644 --- a/main.go +++ b/main.go @@ -954,10 +954,11 @@ func CreateNameTripCode(r *http.Request, db *sql.DB) (string, string) { board, modcred := GetPasswordFromSession(r) if(admin && HasAuth(db, modcred, board)) { return re.ReplaceAllString(input, ""), "#Admin" - } else { + } else if(chunck != "") { hash := CreateTripCode(chunck) return re.ReplaceAllString(input, ""), "!" + hash[42:50] } + return input, "" } func GetActorFromPath(db *sql.DB, location string, prefix string) Actor { -- cgit v1.2.3