Ruby hash-syntaxis wordt weergegeven in e-mails verzonden naar verwijderde gebruikers

Wanneer een gebruiker wordt verwijderd door hun eerste bericht af te wijzen, ontvangen ze een e-mail met als onderwerp Uw account is verwijderd.

Er zit een bug in de body/inhoud van de e-mail, het lijkt erop dat er een soort Ruby hash-syntax wordt weergegeven in het middengedeelte van de e-mail:


Stappen om te repliceren:

  1. Zorg ervoor dat Discourse vereist dat het eerste bericht van elke gebruiker wordt goedgekeurd
  2. Maak een nieuwe gebruiker aan
  3. Maak een nieuw bericht aan met de nieuwe gebruiker
  4. Wijs, met een admin-account, het bericht af met de optie “Gebruiker verwijderen”
  5. De nieuwe gebruiker ontvangt een e-mail met de bovenstaande inhoud
2 likes

If it helps, a couple of screen shots from the admin view of the rejected post:

Before deleting the user:

After rejection and deletion:

1 like

A post was split to a new topic: Fix deleted user email handling for staged users

This looks like a bug in how flag_reason is generated here:

PostActionTypeView.new.types doesn’t include :needs_approval flag (which gets created in the flow described). Because of this, the translation key resolves to flag_reasons. (with no suffix), which returns the entire YAML section instead of a single entry. That’s why there is a Ruby hash in place of the flag reason.

Relatedly, this likely impacts custom flags as well, since their translations would also be missing.

7 likes

I am sure it does. I mentioned that in May

3 likes

We’ve merged a fix for the issue in the OP. I’ve moved the report related to staged users into its own topic to make it easier to track pending a fix.

1 like