mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:54:16 +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. |
||
---|---|---|
.. | ||
anonymous_shadow_creator_spec.rb | ||
auto_silence_spec.rb | ||
badge_granter_spec.rb | ||
color_scheme_revisor_spec.rb | ||
destroy_task_spec.rb | ||
email_style_updater_spec.rb | ||
flag_sockpuppets_spec.rb | ||
group_action_logger_spec.rb | ||
group_mentions_updater_spec.rb | ||
group_message_spec.rb | ||
heat_settings_updater_spec.rb | ||
inline_uploads_spec.rb | ||
notification_emailer_spec.rb | ||
post_action_notifier_spec.rb | ||
post_alerter_spec.rb | ||
post_owner_changer_spec.rb | ||
push_notification_pusher_spec.rb | ||
random_topic_selector_spec.rb | ||
search_indexer_spec.rb | ||
site_settings_spec.rb | ||
staff_action_logger_spec.rb | ||
themes_spec.rb | ||
topic_status_updater_spec.rb | ||
topic_timestamp_changer_spec.rb | ||
trust_level_granter_spec.rb | ||
user_activator_spec.rb | ||
user_anonymizer_spec.rb | ||
user_authenticator_spec.rb | ||
user_destroyer_spec.rb | ||
user_merger_spec.rb | ||
user_silencer_spec.rb | ||
user_updater_spec.rb | ||
username_changer_spec.rb | ||
username_checker_service_spec.rb | ||
wildcard_domain_checker_spec.rb | ||
word_watcher_spec.rb |