summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Reeder <vpzomtrrfrt@gmail.com>2020-12-19 13:57:53 -0700
committerColin Reeder <vpzomtrrfrt@gmail.com>2020-12-19 13:57:53 -0700
commit740e8e7107e0971796d1d903d445c6db76fcf92c (patch)
tree309c47bf4d19276d6277c8491d6cdd4e5149c6dd
parent38ef280da222eb7a7b08380127f1078c785128ec (diff)
Fix ThingLocalRef serialization
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 592bd36..b149e19 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -340,7 +340,8 @@ pub enum ActorLocalRef {
}
#[derive(Clone, Copy, Debug, Serialize)]
-#[serde(tag = "type")]
+#[serde(tag = "type", content = "id")]
+#[serde(rename_all = "snake_case")]
pub enum ThingLocalRef {
Post(PostLocalID),
Comment(CommentLocalID),