1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-28 10:48:30 +00:00

chore: Update ruwuma & fix lints

This commit is contained in:
nexy7574 2025-07-19 20:34:34 +01:00 committed by Jade Ellis
parent 7abda5cc9b
commit ebb0e10c50
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
4 changed files with 15 additions and 18 deletions

View file

@ -5,7 +5,7 @@ use futures::{
future::{OptionFuture, join3},
};
use ruma::{
EventId, Int, OwnedUserId, RoomVersionId, UserId,
Int, OwnedUserId, RoomVersionId, UserId,
events::room::{
create::RoomCreateEventContent,
join_rules::{JoinRule, RoomJoinRulesEventContent},

View file

@ -1,10 +1,7 @@
use conduwuit::{
Err, Event, PduEvent, Result, debug, implement, utils::to_canonical_object, warn,
};
use conduwuit::{Err, Event, PduEvent, Result, debug, implement, warn};
use ruma::{
RoomId, ServerName,
api::federation::room::policy::v1::Request as PolicyRequest,
canonical_json::to_canonical_value,
events::{StateEventType, room::policy::RoomPolicyEventContent},
};
@ -65,7 +62,7 @@ pub async fn policyserv_check(&self, pdu: &PduEvent, room_id: &RoomId) -> Result
pdu.event_id().to_owned()
);
return Err!(Request(Forbidden("Event was marked as spam by policy server")));
};
}
Ok(())
}