Preview URLs

via upstream PR by Reiner Herrmann: !347 (4b54a8b6)

Signed-off-by: rooot <hey@rooot.gay>
This commit is contained in:
Reiner Herrmann 2024-02-09 17:23:08 +01:00 committed by rooot
parent e0cdcf66d3
commit 80a233d6b7
No known key found for this signature in database
GPG key ID: 3582D7B034FF964F
13 changed files with 670 additions and 26 deletions

View file

@ -329,6 +329,10 @@ impl Service<'_> {
self.config.allow_device_name_federation
}
pub fn url_preview_allowlist(&self) -> &Vec<String> {
&self.config.url_preview_allowlist
}
pub fn allow_room_creation(&self) -> bool {
self.config.allow_room_creation
}