mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-08-06 17:40:59 +00:00
Get rid of allowlist check allocs
This commit is contained in:
parent
6a4cff1661
commit
6789ed336e
2 changed files with 23 additions and 31 deletions
|
@ -324,8 +324,8 @@ impl Service {
|
|||
self.config.allow_federation
|
||||
}
|
||||
|
||||
pub fn url_preview_allowlist(&self) -> &Vec<String> {
|
||||
&self.config.url_preview_allowlist
|
||||
pub fn url_preview_allowlist(&self) -> impl Iterator<Item=&str> {
|
||||
self.config.url_preview_allowlist.iter().map(|x| x.as_str())
|
||||
}
|
||||
|
||||
pub fn allow_room_creation(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue