forked from mirrors/relay
Unblock everyone, oops
This commit is contained in:
parent
66c7e9d299
commit
19857a77f1
1 changed files with 4 additions and 4 deletions
|
@ -88,16 +88,16 @@ impl State {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(host) = actor_id.as_url().host() {
|
if let Some(domain) = actor_id.as_url().domain() {
|
||||||
self.whitelists.read().await.contains(&host.to_string());
|
return self.whitelists.read().await.contains(domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn is_blocked(&self, actor_id: &XsdAnyUri) -> bool {
|
pub async fn is_blocked(&self, actor_id: &XsdAnyUri) -> bool {
|
||||||
if let Some(host) = actor_id.as_url().host() {
|
if let Some(domain) = actor_id.as_url().domain() {
|
||||||
self.blocks.read().await.contains(&host.to_string());
|
return self.blocks.read().await.contains(domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in a new issue