summary refs log tree commit diff
path: root/synapse/config/user_directory.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Clean up the user directory sample config section (#9385)Andrew Morgan2021-02-221-32/+37
| | | | | The user directory sample config section was a little messy, and didn't adhere to our [recommended config format guidelines](https://github.com/matrix-org/synapse/blob/develop/docs/code_style.md#configuration-file-format). This PR cleans that up a bit.
* Add a config option to prioritise local users in user directory search ↵Andrew Morgan2021-02-191-0/+9
| | | | | | | | | results (#9383) This PR adds a homeserver config option, `user_directory.prefer_local_users`, that when enabled will show local users higher in user directory search results than remote users. This option is off by default. Note that turning this on doesn't necessarily mean that remote users will always be put below local users, but they should be assuming all other ranking factors (search query match, profile information present etc) are identical. This is useful for, say, University networks that are openly federating, but want to prioritise local students and staff in the user directory over other random users.
* Refactor HomeserverConfig so it can be typechecked (#6137)Amber Brown2019-10-101-0/+2
|
* Don't load the generated config as the default.Richard van der Hoff2019-06-241-1/+1
| | | | It's too confusing.
* Pass config_dir_path and data_dir_path into Config.read_config. (#5522)Richard van der Hoff2019-06-241-1/+1
| | | | | | * Pull config_dir_path and data_dir_path calculation out of read_config_files * Pass config_dir_path and data_dir_path into read_config
* Run Black. (#5482)Amber Brown2019-06-201-4/+4
|
* Fix docs on resetting the user directory (#5036)Aaron Raimist2019-05-281-3/+3
| | | | Signed-off-by: Aaron Raimist <aaron@raim.ist>
* Fix up sample configErik Johnston2019-03-201-2/+4
|
* Update synapse/config/user_directory.pyRichard van der Hoff2019-03-201-1/+1
| | | Co-Authored-By: erikjohnston <erikj@jki.re>
* Add option to disable searching in the user dirErik Johnston2019-03-191-0/+7
| | | | We still populate it, as it can still be accessed via the admin API.
* Attempt to make default config more consistentRichard van der Hoff2019-02-191-1/+1
| | | | | | The general idea here is that config examples should just have a hash and no extraneous whitespace, both to make it easier for people who don't understand yaml, and to make the examples stand out from the comments.
* better docMatthew Hodgson2017-12-041-1/+4
|
* switch to a simpler 'search_all_users' button as per review feedbackMatthew Hodgson2017-12-041-7/+8
|
* specify default user_directory_include_patternMatthew Hodgson2017-11-301-0/+1
|
* untested WIP but might actually workMatthew Hodgson2017-11-291-3/+2
|
* Add user_directory_include_pattern config param to expand search results to ↵Matthew Hodgson2017-11-291-0/+40
additional users Initial commit; this doesn't work yet - the LIKE filtering seems too aggressive. It also needs _do_initial_spam to be aware of prepopulating the whole user_directory_search table with all users... ...and it needs a handle_user_signup() or something to be added so that new signups get incrementally added to the table too. Committing it here as a WIP