mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -34,7 +34,7 @@ RSpec.describe UserStatusMixin do
|
||||
end
|
||||
|
||||
it "doesn't include status if user hid profile and presence" do
|
||||
user.user_option.hide_profile_and_presence = true
|
||||
user.user_option.hide_profile = true
|
||||
serializer = DummySerializer.new(user, root: false, include_status: true)
|
||||
json = serializer.as_json
|
||||
expect(json[:status]).to be_nil
|
||||
|
||||
Reference in New Issue
Block a user