mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-26 23:36:36 +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 2s
Rust Checks / Clippy (push) Failing after 17s
Rust Checks / Cargo Test (push) Failing after 9s
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 2s
Rust Checks / Clippy (push) Failing after 17s
Rust Checks / Cargo Test (push) Failing after 9s
This prevents clobbering
This commit is contained in:
parent
8f7b3bceb0
commit
be52d495c9
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?;
|
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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue