mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
UX: Split hide_profile_and_presence
user option (#29632)
It splits the hide_profile_and_presence user option and the default_hide_profile_and_presence site setting for more granular control. It keeps the option to hide the profile under /u/username/preferences/interface and adds the presence toggle in the quick user menu. Co-authored-by: Régis Hanol <regis@hanol.fr>
This commit is contained in:
@ -173,6 +173,8 @@ def insert_user_options
|
||||
like_notification_frequency,
|
||||
skip_new_user_tips,
|
||||
hide_profile_and_presence,
|
||||
hide_profile,
|
||||
hide_presence,
|
||||
sidebar_link_to_filtered_list,
|
||||
sidebar_show_count_of_new_items
|
||||
)
|
||||
@ -196,7 +198,9 @@ def insert_user_options
|
||||
, #{SiteSetting.default_other_notification_level_when_replying}
|
||||
, #{SiteSetting.default_other_like_notification_frequency}
|
||||
, #{SiteSetting.default_other_skip_new_user_tips}
|
||||
, #{SiteSetting.default_hide_profile_and_presence}
|
||||
, #{SiteSetting.default_hide_profile || SiteSetting.default_hide_presence}
|
||||
, #{SiteSetting.default_hide_profile}
|
||||
, #{SiteSetting.default_hide_presence}
|
||||
, #{SiteSetting.default_sidebar_link_to_filtered_list}
|
||||
, #{SiteSetting.default_sidebar_show_count_of_new_items}
|
||||
FROM users u
|
||||
|
Reference in New Issue
Block a user