hide messages from users servers on the forbidden_remote_server_names list
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
77e0b76408
commit
52693db477
1 changed files with 11 additions and 0 deletions
|
@ -237,6 +237,17 @@ pub(crate) async fn ignored_filter(
|
|||
return None;
|
||||
}
|
||||
|
||||
if IGNORED_MESSAGE_TYPES.iter().any(is_equal_to!(&pdu.kind))
|
||||
&& services
|
||||
.server
|
||||
.config
|
||||
.forbidden_remote_server_names
|
||||
.iter()
|
||||
.any(is_equal_to!(pdu.sender().server_name()))
|
||||
{
|
||||
return None;
|
||||
}
|
||||
|
||||
Some(item)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue