mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 08:55:22 +02:00
fix: Don't store events that have already been redacted
Some checks failed
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Rust Checks / Format (push) Failing after 1s
Rust Checks / Clippy (push) Failing after 13s
Rust Checks / Cargo Test (push) Failing after 10s
Some checks failed
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, linux-amd64) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, linux-arm64) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Rust Checks / Format (push) Failing after 1s
Rust Checks / Clippy (push) Failing after 13s
Rust Checks / Cargo Test (push) Failing after 10s
This prevents clobbering
This commit is contained in:
parent
46b1eeb2c8
commit
aa29b81ef6
1 changed files with 1 additions and 1 deletions
|
@ -1074,7 +1074,7 @@ impl Service {
|
|||
|
||||
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,
|
||||
|
|
Loading…
Add table
Reference in a new issue