Bugfix on chat URL
This commit is contained in:
parent
83391fe5c0
commit
98c6a51951
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user