forked-synapse/synapse/storage/databases/main
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
..
schema Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
__init__.py Add the shadow-banning status to the display user admin API. (#9400) 2021-02-17 15:19:23 -05:00
account_data.py Fix receipts or account data not being sent down sync (#9193) 2021-01-21 15:09:09 +00:00
appservice.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
cache.py Separate get_current_token into two. (#8113) 2020-08-19 10:39:31 +01:00
censor_events.py Remove frozendict_json_encoder and support frozendicts everywhere 2020-10-28 15:56:57 +00:00
client_ips.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
deviceinbox.py Fix some typos. 2021-02-12 11:14:12 -05:00
devices.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
directory.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
e2e_room_keys.py Convert additional database code to async/await. (#8195) 2020-08-28 07:54:27 -04:00
end_to_end_keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
event_federation.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
event_push_actions.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events_bg_updates.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events_forward_extremities.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events_worker.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
events.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
filtering.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
group_server.py Add type hints to groups code. (#9393) 2021-02-17 08:41:47 -05:00
keys.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
media_repository.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
metrics.py Fix some typos. 2021-02-12 11:14:12 -05:00
monthly_active_users.py Move additional tasks to the background worker, part 3 (#8489) 2020-10-09 07:37:51 -04:00
openid.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
presence.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
profile.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
purge_events.py Use execute_batch in more places (#9188) 2021-01-21 14:44:12 +00:00
push_rule.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
pusher.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
receipts.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
registration.py Add the shadow-banning status to the display user admin API. (#9400) 2021-02-17 15:19:23 -05:00
rejections.py Convert simple_select_one and simple_select_one_onecol to async (#8162) 2020-08-26 07:19:32 -04:00
relations.py Convert additional databases to async/await (#8199) 2020-09-01 09:21:48 -04:00
room.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
roommember.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
search.py Add type hints to various handlers. (#9223) 2021-01-26 10:50:21 -05:00
signatures.py Convert additional databases to async/await part 2 (#8200) 2020-09-01 08:39:04 -04:00
state_deltas.py Fix some typos. 2021-02-12 11:14:12 -05:00
state.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stream.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
tags.py Allow moving account data and receipts streams off master (#9104) 2021-01-18 15:47:59 +00:00
transactions.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
ui_auth.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00: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
user_erasure_store.py Fixed a bug with reactivating users with the admin API (#8362) 2020-09-22 18:19:01 +01:00