Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Add a config option to prioritise local users in user directory search results #84

Merged
merged 2 commits into from
Feb 19, 2021

Conversation

anoadragon453
Copy link
Member

This PR is a port of the equivalent mainline PR: matrix-org/synapse#9383

It includes a new config option, user_directory.prefer_local_users which must be set to true for the functionality to be enabled.

anoadragon453 and others added 2 commits February 19, 2021 11:05
…h 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.
@anoadragon453 anoadragon453 merged commit 8f97c6c into dinsic Feb 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant