Fix Directory: Per-domain external directory resolution fails

This commit is contained in:
Maurus Decimus
2026-05-26 21:17:14 +02:00
parent 1fb87eda64
commit 57ab6bda0f
2 changed files with 3 additions and 1 deletions

View File

@@ -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

View File

@@ -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