mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 17:22:14 -04:00
Add option to disable search room lists
This disables both local and remote room list searching.
This commit is contained in:
parent
11f2125885
commit
213c98c00a
3 changed files with 27 additions and 0 deletions
|
@ -20,6 +20,10 @@ from ._base import Config, ConfigError
|
|||
|
||||
class RoomDirectoryConfig(Config):
|
||||
def read_config(self, config):
|
||||
self.enable_room_list_search = config.get(
|
||||
"enable_room_list_search", True,
|
||||
)
|
||||
|
||||
alias_creation_rules = config.get("alias_creation_rules")
|
||||
|
||||
if alias_creation_rules is not None:
|
||||
|
@ -54,6 +58,11 @@ class RoomDirectoryConfig(Config):
|
|||
|
||||
def default_config(self, config_dir_path, server_name, **kwargs):
|
||||
return """
|
||||
# Wether the public room list can be searched. When disabled blocks
|
||||
# searching local and remote room list for local and remote users.
|
||||
#
|
||||
#enable_room_list_search: true
|
||||
|
||||
# The `alias_creation` option controls who's allowed to create aliases
|
||||
# on this server.
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue