mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 23:36:36 +02:00
Don't call policy server on ourselves
(cherry picked from commit a8c10f6317011ee9db3db968f7a4f81284211780)
This commit is contained in:
parent
4c30eec355
commit
cd479604fe
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ pub(super) async fn upgrade_outlier_to_timeline_pdu(
|
||||||
}
|
}
|
||||||
|
|
||||||
// 15. If the event is not a state event, ask the policy server about it
|
// 15. If the event is not a state event, ask the policy server about it
|
||||||
if incoming_pdu.state_key.is_none() {
|
if incoming_pdu.state_key.is_none() && incoming_pdu.sender().server_name() != self.services.globals.server_name() {
|
||||||
debug!("Checking policy server for event {}", incoming_pdu.event_id);
|
debug!("Checking policy server for event {}", incoming_pdu.event_id);
|
||||||
let policy = self.policyserv_check(
|
let policy = self.policyserv_check(
|
||||||
&incoming_pdu.event_id,
|
&incoming_pdu.event_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue