mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-08-29 00:08:18 +00:00
fix: Don't store events that have already been redacted
This prevents clobbering
This commit is contained in:
@@ -1074,7 +1074,7 @@ pub async fn redact_pdu(
|
||||
|
||||
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| {
|
||||
err!(Database(error!(
|
||||
?event_id,
|
||||
|
||||
Reference in New Issue
Block a user