config option to check root domain with URL previews
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
54ade97f96
commit
244c1f7190
5 changed files with 60 additions and 12 deletions
|
@ -416,6 +416,10 @@ impl Service<'_> {
|
|||
self.config.url_preview_max_spider_size
|
||||
}
|
||||
|
||||
pub fn url_preview_check_root_domain(&self) -> bool {
|
||||
self.config.url_preview_check_root_domain
|
||||
}
|
||||
|
||||
pub fn forbidden_room_names(&self) -> &RegexSet {
|
||||
&self.config.forbidden_room_names
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue