anonymousland-synapse/synapse/config
Andrew Morgan 13e9029f44
Add a config option to prioritise local users in user directory search 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.
2021-02-19 11:02:03 +00:00
..
__init__.py Let synctl use a config directory. (#5904) 2019-08-28 15:55:58 +01:00
__main__.py isort 5 compatibility (#7786) 2020-07-05 16:32:02 +01:00
_base.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
_base.pyi Ratelimit 3PID /requestToken API (#9238) 2021-01-28 17:39:21 +00:00
_util.py Fix validate_config on nested objects (#9054) 2021-01-08 14:23:04 +00:00
api.py Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
appservice.py Send some ephemeral events to appservices (#8437) 2020-10-15 12:33:28 -04:00
auth.py Parse ui_auth.session_timeout as a duration (instead of treating it as ms) (#9426) 2021-02-18 09:18:14 -05:00
cache.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
captcha.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
consent_config.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
emailconfig.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
experimental.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
federation.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
groups.py Update the value of group_creation_prefix in sample config. (#8992) 2020-12-29 09:30:48 -05:00
homeserver.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
jwt_config.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
key.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
logger.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
metrics.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
oidc_config.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
password_auth_providers.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
push.py Add a config option to change whether unread push notification counts are per-message or per-room (#8820) 2020-11-30 18:43:54 +00:00
ratelimiting.py Ratelimit invites by room and target user (#9258) 2021-01-29 16:38:29 +00:00
redis.py Update worker docs with recent enhancements (#7969) 2020-07-29 23:22:13 +01:00
registration.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
repository.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
room_directory.py Fix some typos. 2021-02-12 11:14:12 -05:00
room.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
saml2_config.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
server_notices_config.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
server.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
spam_checker.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
sso.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
third_party_event_rules.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
tls.py Enable mypy checking for unreachable code and fix instances. (#8432) 2020-10-01 08:09:18 -04:00
tracer.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
user_directory.py Add a config option to prioritise local users in user directory search results (#9383) 2021-02-19 11:02:03 +00:00
voip.py Add config linting script that checks for bool casing (#6203) 2019-10-23 13:22:54 +01:00
workers.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00