Skip to content
Snippets Groups Projects
  • Andrew Morgan's avatar
    13e9029f
    Add a config option to prioritise local users in user directory search results (#9383) · 13e9029f
    Andrew Morgan authored
    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.
    Add a config option to prioritise local users in user directory search results (#9383)
    Andrew Morgan authored
    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.