Secondo @simon in Aggiorna le citazioni e i menzioni quando il nome utente viene modificato
quando il nome utente viene modificato, le citazioni e i menzioni vengono aggiornati automaticamente. La modifica del nome utente non interrompe le citazioni e i menzioni.
Ho notato che quando il nome utente viene modificato tramite SSO, ciò non accade. Sembra quindi trattarsi di un bug.
2 Mi Piace
andrei
(Andrei Prigorshnev)
7 Dicembre 2021, 8:44pm
3
Questa PR risolve il problema. Dopo aver modificato il nome utente tramite SSO, menzioni e citazioni verranno aggiornate automaticamente:
main ← dev/extract-username-overrider
opened 12:57PM - 18 Oct 21 UTC
This addresses comments of @gschlager to https://github.com/discourse/discourse/… pull/14531:
- extracts the common logic of overriding usernames into separate method
- fixes usernames comparison when checking if a username should be overridden. We should unicode normalize a new username before comparison, not only down case it. Note also that this logic was extracted into a separate method:
https://github.com/discourse/discourse/blob/78cfaa6f726c1fe08a6afd93c67caded2620548d/app/models/user.rb#L1441-L1443
- adds using of `UsernameChanger` instead of just setting a new username in order to update quotes and mentions when renaming (which addresses this complaint https://meta.discourse.org/t/updating-mentions-when-username-is-changed-via-sso/202992)
5 Mi Piace
david
(David Taylor)
Chiuso
9 Dicembre 2021, 8:00am
5
Questo argomento è stato chiuso automaticamente dopo 19 ore. Non sono più consentite nuove risposte.