Use typed structs for activity objects instead of inline json!() #20
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Low
src/service/broadcast.rslines 80, 143, 167, 220 construct inner activity objects as raw JSON values (e.g.,json!({"type":"Announce","id":...})).This bypasses the type system and serde validation. If a field name is mistyped, it silently produces non-spec JSON that remote servers will reject. Use typed structs with
#[derive(Serialize)]instead.