mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: new site setting to hide user profiles by default. (#18864)
Previously, we didn't have a site-wide setting to set the default behavior for user profile visibility and user presence features. But we already have a user preference for that.
This commit is contained in:
@@ -160,7 +160,8 @@ def insert_user_options
|
||||
auto_track_topics_after_msecs,
|
||||
notification_level_when_replying,
|
||||
like_notification_frequency,
|
||||
skip_new_user_tips
|
||||
skip_new_user_tips,
|
||||
hide_profile_and_presence
|
||||
)
|
||||
SELECT u.id
|
||||
, #{SiteSetting.default_email_mailing_list_mode}
|
||||
@@ -181,6 +182,7 @@ 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}
|
||||
FROM users u
|
||||
LEFT JOIN user_options uo ON uo.user_id = u.id
|
||||
WHERE uo.user_id IS NULL
|
||||
|
||||
Reference in New Issue
Block a user