Tentativo di utilizzare la funzionalità @username causa il crash della scheda

Problema

Da circa due settimane, ogni volta che un utente tenta di menzionare un altro utente scrivendo @nome, la scheda si blocca e alla fine si arresta. Questo accade a tutti gli utenti su tutti i browser. Ho continuato ad aggiornare regolarmente nella speranza che si risolvesse da solo, ma sembra che non si tratti di un problema diffuso per altri forum e quindi apparentemente non è stato segnalato né risolto. Attualmente siamo sulla versione v2.3.0.beta9 +618; credo che tutto sia Discourse vanilla.

Utilizzando la console JavaScript di Chrome, l’errore si verifica sulla riga seguente, quindi presumo che il ciclo non termini correttamente:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/pretty-text/engines/discourse-markdown/text-post-process.js.es6#L90

Questo codice è stato aggiornato il 23 aprile nella commit: FEATURE: Add support for Unicode usernames and group names · discourse/discourse@a7bc1ec · GitHub, quindi forse qualcosa si è rotto con quell’aggiornamento?

Passaggi per riprodurre il problema

  • Vai su https://online-go.com per creare un account gratuito (i forum utilizzano SSO, quindi ne avrai bisogno).
  • Vai su https://forums.online-go.com/ e accedi.
  • Prova a rispondere o a creare un nuovo post, digita @t e nota che la scheda si blocca e alla fine si arresta.

Sono felice di fornire ulteriori dettagli o accesso ai forum se ciò può aiutare a capire cosa sta succedendo.

The bug seems to be in either a theme or a plugin that you’re using on the site. When I enter the site in safe-mode by going to https://forums.online-go.com/safe-mode I’m able to add a username to a post without any problem. I didn’t try actually saving a post, but I’m fairly sure that will work in safe-mode. If I don’t enter safe-mode, I get exactly the error that you are describing.

Thanks for the incredibly fast reply!

Apparently it’s the theme, I’ll work from there. Thanks a ton!