Ciao
Quando faccio clic su ‘salva invito’ dopo aver compilato le informazioni per l’invito, non succede nulla e nella console (DevTools) viene visualizzato un errore “this.invite.save is not a function”. Credo che si tratti di un bug, potresti confermare che verrà corretto?
vedi screenshot:
Per chiunque riscontri lo stesso problema, è possibile creare temporaneamente link di invito utilizzando l’API di Discourse:
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));
Grazie!

