Sur le site web https://forum.dark-gaming.com , il y avait un badge « Patron ». Mais après que le propriétaire du site a mis à jour le forum, le badge Patron a été partiellement écrasé par Discourse. Patron badge is overwritten since forum updated - Bug Reports - Dark Gaming
Les preuves après l’incident :
L’identifiant du badge sur ce forum est 108
Alors que sur d’autres sites, il est 126
Ce badge était un badge attribué manuellement.
Je ne suis qu’un utilisateur de ce site. Par conséquent, je ne suis pas en mesure de fournir d’autres informations.
4 « J'aime »
Oui, il y a une collision de noms qui provoque un problème ici. Cette modification ajoutera des garde-fous pour l’éviter à l’avenir, renommer l’écrin vocal et rétablir l’écrin Patron précédent
main ← fix/badge-seed-clobbering
opened 04:16PM - 25 Sep 26 UTC
Reported here: https://meta.discourse.org/t/voice-badges-overwrote-a-custom-badg… e/412811
The "Patron" badge from the Voice plugin is overwriting the "Patron" badge from the Patreon plugin.
When plugins seed their badges with `Badge.seed(:name)` they can overwrite existing badges with the same name. This change adds `Badge.seed_unless_site_has("Badge name")` which skips seeding if there's an existing site-created badge with the same name. This has been applied to the core plugins that seed badges.
This also adds changes so badge translations no longer apply to non-system badges, so a plugin's locale file can't override the name or description of a badge the site created.
The "Patron" badge from the Voice plugin that was overriding the "Patron" badge from the Patreon plugin is now renamed to "Frequenter," and restores the Patreon "Patron" badge where the patrons group still exists.
4 « J'aime »