Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Add timestamp to revisions json
Sebastian Martinez committed 3 years ago
commit 2c0cdcd1c5466cf48ea6c73cdd6f8d1e14fa4b5e
parent a49eec9892e6f1a1811cf862f4d5297fc599ba84
2 files changed +4 -0
modified radicle-httpd/src/api/json.rs
@@ -115,6 +115,7 @@ pub(crate) fn patch(id: PatchId, patch: Patch) -> Value {
            json!({
                "id": id,
                "description": rev.description(),
+
                "timestamp": rev.timestamp,
                "reviews": rev.reviews().collect::<Vec<_>>(),
            })
        }).collect::<Vec<_>>(),
modified radicle-httpd/src/api/v1/projects.rs
@@ -1335,6 +1335,7 @@ mod routes {
                    {
                        "id": PATCH_ID,
                        "description": "",
+
                        "timestamp": 1671125284,
                        "reviews": [],
                    }
                ],
@@ -1362,6 +1363,7 @@ mod routes {
                    {
                        "id": PATCH_ID,
                        "description": "",
+
                        "timestamp": 1671125284,
                        "reviews": [],
                    }
                ],
@@ -1432,6 +1434,7 @@ mod routes {
                    {
                        "id": CREATED_PATCH_ID,
                        "description": "",
+
                        "timestamp": 1671125284,
                        "reviews": [],
                    }
                ],