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

fix: Don't store events that have already been redacted

This prevents clobbering
This commit is contained in:
Jade Ellis 2025-05-28 02:10:02 +01:00
parent 46b1eeb2c8
commit aa29b81ef6
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -1074,7 +1074,7 @@ impl Service {
let room_version_id = self.services.state.get_room_version(&pdu.room_id).await?; let room_version_id = self.services.state.get_room_version(&pdu.room_id).await?;
if keep_original_content { if keep_original_content && !pdu.is_redacted() {
let original_pdu_json = utils::to_canonical_object(&pdu).map_err(|e| { let original_pdu_json = utils::to_canonical_object(&pdu).map_err(|e| {
err!(Database(error!( err!(Database(error!(
?event_id, ?event_id,