aboutsummaryrefslogtreecommitdiff
path: root/src/data/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/data/event.cpp')
-rw-r--r--src/data/event.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/data/event.cpp b/src/data/event.cpp
index e275f31..d101531 100644
--- a/src/data/event.cpp
+++ b/src/data/event.cpp
@@ -19,12 +19,13 @@ string Event::serialize()
}
json j = {
- {"pubkey", this->pubkey},
- {"created_at", this->createdAt},
- {"kind", this->kind},
- {"tags", this->tags},
- {"content", this->content},
- {"sig", this->sig}};
+ { "pubkey", this->pubkey },
+ { "created_at", this->createdAt },
+ { "kind", this->kind },
+ { "tags", this->tags },
+ { "content", this->content },
+ { "sig", this->sig }
+ };
j["id"] = this->generateId(j.dump());