mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:17:57 +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:
@ -2167,7 +2167,8 @@ RSpec.describe User do
|
||||
SiteSetting.default_other_dynamic_favicon = true
|
||||
SiteSetting.default_other_skip_new_user_tips = true
|
||||
|
||||
SiteSetting.default_hide_profile_and_presence = true
|
||||
SiteSetting.default_hide_profile = true
|
||||
SiteSetting.default_hide_presence = true
|
||||
SiteSetting.default_topics_automatic_unpin = false
|
||||
|
||||
SiteSetting.default_categories_watching = category0.id.to_s
|
||||
@ -2189,7 +2190,8 @@ RSpec.describe User do
|
||||
expect(options.enable_smart_lists).to eq(false)
|
||||
expect(options.dynamic_favicon).to eq(true)
|
||||
expect(options.skip_new_user_tips).to eq(true)
|
||||
expect(options.hide_profile_and_presence).to eq(true)
|
||||
expect(options.hide_profile).to eq(true)
|
||||
expect(options.hide_presence).to eq(true)
|
||||
expect(options.automatically_unpin_topics).to eq(false)
|
||||
expect(options.new_topic_duration_minutes).to eq(-1)
|
||||
expect(options.auto_track_topics_after_msecs).to eq(0)
|
||||
|
Reference in New Issue
Block a user