diff --git a/pkg/controller/chat/chat.go b/pkg/controller/chat/chat.go index 9a1b24f..6182a0d 100644 --- a/pkg/controller/chat/chat.go +++ b/pkg/controller/chat/chat.go @@ -151,7 +151,7 @@ func SendBlocklist(user *models.User) error { } // Make the API request to BareRTC. - var url = config.Current.BareRTC.URL + "/api/blocklist" + var url = strings.TrimSuffix(config.Current.BareRTC.URL, "/") + "/api/blocklist" req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr)) if err != nil { return err