From 98c6a51951d5e3903edc9c52afabf0f93eab0244 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Sun, 30 Jul 2023 10:56:14 -0700 Subject: [PATCH] Bugfix on chat URL --- pkg/controller/chat/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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