mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 14:28:34 +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. |
||
---|---|---|
.. | ||
admin_confirmation_email.rb | ||
anonymize_user.rb | ||
automatic_group_membership.rb | ||
backup_chunks_merger.rb | ||
bulk_grant_trust_level.rb | ||
bulk_invite.rb | ||
bulk_user_title_update.rb | ||
bump_topic.rb | ||
confirm_sns_subscription.rb | ||
crawl_topic_link.rb | ||
create_avatar_thumbnails.rb | ||
create_backup.rb | ||
create_user_reviewable.rb | ||
critical_user_email.rb | ||
delete_inaccessible_notifications.rb | ||
delete_topic.rb | ||
download_avatar_from_url.rb | ||
download_backup_email.rb | ||
download_profile_background_from_url.rb | ||
emit_web_hook_event.rb | ||
enable_bootstrap_mode.rb | ||
export_csv_file.rb | ||
feature_topic_users.rb | ||
invite_email.rb | ||
invite_password_instructions_email.rb | ||
notify_category_change.rb | ||
notify_mailing_list_subscribers.rb | ||
notify_moved_posts.rb | ||
notify_post_revision.rb | ||
notify_reviewable.rb | ||
notify_tag_change.rb | ||
post_alert.rb | ||
process_bulk_invite_emails.rb | ||
process_email.rb | ||
process_post.rb | ||
process_sns_notification.rb | ||
publish_topic_to_category.rb | ||
pull_hotlinked_images.rb | ||
push_notification.rb | ||
rebake_custom_emoji_posts.rb | ||
retrieve_topic.rb | ||
run_heartbeat.rb | ||
send_push_notification.rb | ||
send_system_message.rb | ||
suspicious_login.rb | ||
toggle_topic_closed.rb | ||
topic_action_converter.rb | ||
topic_reminder.rb | ||
truncate_user_flag_stats.rb | ||
unpin_topic.rb | ||
update_gravatar.rb | ||
update_group_mentions.rb | ||
update_private_uploads_acl.rb | ||
update_s3_inventory.rb | ||
update_top_redirection.rb | ||
update_username.rb | ||
user_email.rb |