diff options
author | Erik Johnston <erik@matrix.org> | 2019-03-20 14:35:41 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-03-20 14:35:41 +0000 |
commit | cd8c5b91addf716ad76c315462a6d09e87241b25 (patch) | |
tree | fe574c3d70a88afcf6eaa81c9dfb5333fdd46332 | |
parent | Update synapse/config/user_directory.py (diff) | |
download | synapse-cd8c5b91addf716ad76c315462a6d09e87241b25.tar.xz |
Fix up sample config
-rw-r--r-- | docs/sample_config.yaml | 6 | ||||
-rw-r--r-- | synapse/config/user_directory.py | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/docs/sample_config.yaml b/docs/sample_config.yaml index f242b1ffbc..93aa6a6754 100644 --- a/docs/sample_config.yaml +++ b/docs/sample_config.yaml @@ -954,8 +954,10 @@ password_config: # User Directory configuration # -# 'enabled' defines whether users can search the user directory, -# defaults to True. +# 'enabled' defines whether users can search the user directory. If +# false then empty responses are returned to all queries. Defaults to +# true. +# # 'search_all_users' defines whether to search all users visible to your HS # when searching the user directory, rather than limiting to users visible # in public rooms. Defaults to false. If you set it True, you'll have to run diff --git a/synapse/config/user_directory.py b/synapse/config/user_directory.py index 9dd83b794d..142754a7dc 100644 --- a/synapse/config/user_directory.py +++ b/synapse/config/user_directory.py @@ -37,8 +37,10 @@ class UserDirectoryConfig(Config): return """ # User Directory configuration # - # 'enabled' defines whether users can search the user directory, - # Defaults to true. + # 'enabled' defines whether users can search the user directory. If + # false then empty responses are returned to all queries. Defaults to + # true. + # # 'search_all_users' defines whether to search all users visible to your HS # when searching the user directory, rather than limiting to users visible # in public rooms. Defaults to false. If you set it True, you'll have to run |