Hi
When I click on the ‘save invite’ after filling in the information for the invitation, nothing happens, and in the console (DevTools) it shows an error “this.invite.save is not a function.” I believe this is a bug, could you please confirm that it will be fixed?
see screenshot:
For anyone facing the same issue, you can temporarily create invitation links using the Discourse API:
var myHeaders = new Headers();
myHeaders.append("Api-Username", "Gassim");
myHeaders.append("Content-Type", "application/json");
myHeaders.append("api-key", "amazingseceretAPIkey");
var raw = JSON.stringify({
"max_redemptions_allowed": 1000000,
"topic_id": 56955,
"group_names": "AMAZINGGROUP",
"expires_at": "2024-02-08T12:00:00.000Z"
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("domain/invites.json", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Thanks!