1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-07-04 18:08:35 +02:00

Fix redacted_because field being sent as a string

This commit is contained in:
phesch 2021-05-26 17:16:40 +02:00
parent d1c0eaf628
commit ddcf1a715b

View file

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