1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-14 11:47:33 +00:00

remove debug print statement

This commit is contained in:
wunter8 2024-03-20 10:54:41 -06:00 committed by GitHub
parent 7fd5f0b29d
commit 83356f565e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -970,7 +970,6 @@ func (s *Server) parsePublishParams(r *http.Request, m *message) (cache bool, fi
} }
call = readParam(r, "x-call", "call") call = readParam(r, "x-call", "call")
if call != "" && (s.config.TwilioAccount == "" || s.userManager == nil) { if call != "" && (s.config.TwilioAccount == "" || s.userManager == nil) {
print("call: %s", call)
return false, false, "", "", false, false, errHTTPBadRequestPhoneCallsDisabled return false, false, "", "", false, false, errHTTPBadRequestPhoneCallsDisabled
} else if call != "" && !isBoolValue(call) && !phoneNumberRegex.MatchString(call) { } else if call != "" && !isBoolValue(call) && !phoneNumberRegex.MatchString(call) {
return false, false, "", "", false, false, errHTTPBadRequestPhoneNumberInvalid return false, false, "", "", false, false, errHTTPBadRequestPhoneNumberInvalid