mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 10:54:22 +08:00
56d3e29a69
* Fix user title logic when badge name customized * Fix an issue where a user's title was not considered a badge granted title when the user used a badge for their title and the badge name was customized. this affected the effectiveness of revoke_ungranted_titles! which only operates on badge_granted_titles. * When a user's title is set now it is considered a badge_granted_title if the badge name OR the badge custom name from TranslationOverride is the same as the title * When a user's badge is revoked we now also revoke their title if the user's title matches the badge name OR the badge custom name from TranslationOverride * Add a user history log when the title is revoked to remove confusion about why titles are revoked * Add granted_title_badge_id to user_profile, now when we set badge_granted_title on a user profile when updating a user's title based on a badge, we also remember which badge matched the title * When badge name (or custom text) changes update titles of users in a background job * When the name of a badge changes, or in the case of system badges when their custom translation text changes, then we need to update the title of all corresponding users who have a badge_granted_title and matching granted_title_badge_id. In the case of system badges we need to first get the proper badge ID based on the translation key e.g. badges.regular.name * Add migration to backfill all granted_title_badge_ids for both normal badge name titles and titles using custom badge text. |
||
---|---|---|
.. | ||
client.ar.yml | ||
client.be.yml | ||
client.bg.yml | ||
client.bs_BA.yml | ||
client.ca.yml | ||
client.cs.yml | ||
client.da.yml | ||
client.de.yml | ||
client.el.yml | ||
client.en_US.yml | ||
client.en.yml | ||
client.es.yml | ||
client.et.yml | ||
client.fa_IR.yml | ||
client.fi.yml | ||
client.fr.yml | ||
client.gl.yml | ||
client.he.yml | ||
client.hu.yml | ||
client.hy.yml | ||
client.id.yml | ||
client.it.yml | ||
client.ja.yml | ||
client.ko.yml | ||
client.lt.yml | ||
client.lv.yml | ||
client.nb_NO.yml | ||
client.nl.yml | ||
client.pl_PL.yml | ||
client.pt_BR.yml | ||
client.pt.yml | ||
client.ro.yml | ||
client.ru.yml | ||
client.sk.yml | ||
client.sl.yml | ||
client.sq.yml | ||
client.sr.yml | ||
client.sv.yml | ||
client.sw.yml | ||
client.te.yml | ||
client.th.yml | ||
client.tr_TR.yml | ||
client.uk.yml | ||
client.ur.yml | ||
client.vi.yml | ||
client.zh_CN.yml | ||
client.zh_TW.yml | ||
names.yml | ||
plurals.rb | ||
server.ar.yml | ||
server.be.yml | ||
server.bg.yml | ||
server.bs_BA.yml | ||
server.ca.yml | ||
server.cs.yml | ||
server.da.yml | ||
server.de.yml | ||
server.el.yml | ||
server.en_US.yml | ||
server.en.yml | ||
server.es.yml | ||
server.et.yml | ||
server.fa_IR.yml | ||
server.fi.yml | ||
server.fr.yml | ||
server.gl.yml | ||
server.he.yml | ||
server.hu.yml | ||
server.hy.yml | ||
server.id.yml | ||
server.it.yml | ||
server.ja.yml | ||
server.ko.yml | ||
server.lt.yml | ||
server.lv.yml | ||
server.nb_NO.yml | ||
server.nl.yml | ||
server.pl_PL.yml | ||
server.pt_BR.yml | ||
server.pt.yml | ||
server.ro.yml | ||
server.ru.yml | ||
server.sk.yml | ||
server.sl.yml | ||
server.sq.yml | ||
server.sr.yml | ||
server.sv.yml | ||
server.sw.yml | ||
server.te.yml | ||
server.th.yml | ||
server.tr_TR.yml | ||
server.uk.yml | ||
server.ur.yml | ||
server.vi.yml | ||
server.zh_CN.yml | ||
server.zh_TW.yml | ||
transliterate.ar.yml | ||
transliterate.bg.yml | ||
transliterate.de.yml | ||
transliterate.el.yml | ||
transliterate.en.yml | ||
transliterate.ru.yml | ||
transliterate.vi.yml |