mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-06-04 10:21:57 +00: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:
+1
-3
@@ -74,9 +74,7 @@ pub fn redact(&mut self, reason: &PduEvent) -> crate::Result<()> {
|
||||
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user