1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-20 18:56:26 +01:00

Merge branch 'redaction_quotes' into 'master'

Fix redacted_because field being sent as a string

Closes #87

See merge request famedly/conduit!88
This commit is contained in:
Timo Kösters 2021-05-26 15:58:00 +00:00
commit eeb0b59b76

View file

@ -74,9 +74,7 @@ impl PduEvent {
self.unsigned.insert( self.unsigned.insert(
"redacted_because".to_owned(), "redacted_because".to_owned(),
serde_json::to_string(reason) serde_json::to_value(reason).expect("to_value(PduEvent) always works"),
.expect("PduEvent::to_string always works")
.into(),
); );
self.content = new_content.into(); self.content = new_content.into();