Fix Directory: Per-domain external directory resolution fails
This commit is contained in:
@@ -19,6 +19,7 @@ If you are upgrading from v0.16.x, replace the binary (or run `docker pull`). If
|
||||
- Expand lists and resolve catch-all addresses when building autogenerated messages.
|
||||
- Sharing: Includes resource that themselves carry a direct ACL grant and are leaves.
|
||||
- Tasks cannot be deleted in OSS builds.
|
||||
- Directory: Per-domain external directory resolution fails.
|
||||
|
||||
## [0.16.6] - 2026-05-20
|
||||
|
||||
|
||||
@@ -516,7 +516,8 @@ impl Server {
|
||||
.domain(domain_name)
|
||||
.await
|
||||
.caused_by(trc::location!())?
|
||||
.and_then(|domain| self.core.storage.directories.get(&domain.id))
|
||||
.and_then(|domain| domain.id_directory)
|
||||
.and_then(|id_directory| self.core.storage.directories.get(&id_directory))
|
||||
.or_else(|| self.get_default_directory()));
|
||||
}
|
||||
// SPDX-SnippetEnd
|
||||
|
||||
Reference in New Issue
Block a user