config option to allow/disallow federation profile requests

allow_profile_lookup_federation_requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-04-07 22:38:33 -04:00 committed by June
parent 85814e96e3
commit 973fed155e
4 changed files with 30 additions and 1 deletions

View file

@ -260,6 +260,10 @@ impl Service<'_> {
pub fn auto_join_rooms(&self) -> &[OwnedRoomId] { &self.config.auto_join_rooms }
pub fn allow_profile_lookup_federation_requests(&self) -> bool {
self.config.allow_profile_lookup_federation_requests
}
pub fn notification_push_path(&self) -> &String { &self.config.notification_push_path }
pub fn emergency_password(&self) -> &Option<String> { &self.config.emergency_password }