Bugfix on chat URL

face-detect
Noah Petherbridge 2023-07-30 10:56:14 -07:00
parent 83391fe5c0
commit 98c6a51951
1 changed files with 1 additions and 1 deletions

View File

@ -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