I want visitors to be able post a simple note or question without having to register, kind of like an integrated “Contact Us” form or “Guestbook”. So I was considering using the API to set up a simple form that creates topics as a shared “anon” user. I was also thinking I could make a plugin that stores a different name per post that is displayed instead of the shared username.
I suppose I could fake a POST to the same endpoint which I believe would create a “staged” user. There needs to be a way to avoid sending any emails to that staged user though.
Another option might be to create a new user and topic via the API, then delete that user. According to this it’s possible to delete a user and retain the post, but I can’t find any details about how that works or where it happens in the code.
Voglio creare un codice di incorporamento per un modulo di contatto da utilizzare su un altro sito web, in modo che, dopo che l’utente ha completato il modulo, venga automaticamente pubblicato un argomento su Discourse o inviata un messaggio a un amministratore o moderatore?