1
0
Fork 0
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:
Steven Vergenz 2024-10-31 09:34:10 -07:00
parent 6a4cff1661
commit 6789ed336e
2 changed files with 23 additions and 31 deletions

View file

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