Bugfix on chat URL

This commit is contained in:
Noah Petherbridge 2023-07-30 10:56:14 -07:00
parent 83391fe5c0
commit 98c6a51951

View File

@ -151,7 +151,7 @@ func SendBlocklist(user *models.User) error {
} }
// Make the API request to BareRTC. // 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)) req, err := http.NewRequest("POST", url, bytes.NewBuffer(jsonStr))
if err != nil { if err != nil {
return err return err