Get Voip.ms working again in the text system

Because we need it for the conference.
This commit is contained in:
Eli Ribble 2026-01-29 21:53:49 +00:00
parent a900c23090
commit d2d5f003d8
No known key found for this signature in database
8 changed files with 221 additions and 57 deletions

View file

@ -39,7 +39,7 @@ func apiAudioPost(w http.ResponseWriter, r *http.Request, u *models.User) {
return
}
if err := json.Unmarshal(body, &payload); err != nil {
debugSaveRequest(body, err, "Audio note POST JSON decode error")
//debugSaveRequest(body, err, "Audio note POST JSON decode error")
http.Error(w, "Failed to decode the payload", http.StatusBadRequest)
return
}
@ -136,7 +136,7 @@ func apiImagePost(w http.ResponseWriter, r *http.Request, u *models.User) {
return
}
if err := json.Unmarshal(body, &payload); err != nil {
debugSaveRequest(body, err, "Image note POST JSON decode error")
//debugSaveRequest(body, err, "Image note POST JSON decode error")
http.Error(w, "Failed to decode the payload", http.StatusBadRequest)
return
}