Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
deafc420a5 | ||
|
fce15f0e29 | ||
|
5b5893f407 |
@@ -148,7 +148,8 @@ dns.overwrite.homeserver.client:
|
||||
value: 'http://localhost:8008'
|
||||
```
|
||||
`name` must be the hostname of the URL that clients use when connecting to the Homeserver.
|
||||
In case the hostname is the same as your Matrix domain, you can use `${matrix.domain}` to auto-populate the `value`
|
||||
using the `matrix.domain` configuration option and avoid duplicating it.
|
||||
You can use `${server.name}` to auto-populate the `value` using the `server.name` configuration option and avoid duplicating it.
|
||||
In case the hostname is the same as your Matrix domain and `server.name` is not explicitely set in the config, `server.name` will default to
|
||||
`matrix.domain` and will still probably have the correct value.
|
||||
|
||||
`value` is the base internal URL of the Homeserver, without any `/_matrix/..` or trailing `/`.
|
||||
|
@@ -138,5 +138,5 @@ the `matrix.domain` configuration option and avoid duplicating it.
|
||||
You can configure if the Homeserver should be queried at all when doing a directory search.
|
||||
To disable Homeserver results, set the following in mxisd configuration file:
|
||||
```yaml
|
||||
directory.exclude.homeserever: true
|
||||
directory.exclude.homeserver: true
|
||||
```
|
||||
|
@@ -75,6 +75,10 @@ public class DirectoryManager {
|
||||
}
|
||||
|
||||
public UserDirectorySearchResult search(URI target, String accessToken, String query) {
|
||||
if (StringUtils.startsWith(query, "@")) {
|
||||
query = query.substring(1);
|
||||
}
|
||||
|
||||
log.info("Performing search for '{}'", query);
|
||||
log.info("Original request URL: {}", target);
|
||||
UserDirectorySearchResult result = new UserDirectorySearchResult();
|
||||
|
Reference in New Issue
Block a user