Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Add timestamp to revisions json
Sebastian Martinez committed 3 years ago
commit 3f0141b087462d1f96a3a1432de5811c2dafba1a
parent caa7078d627db5c10a01d9decc29ae6d29fa6a71
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": [],
                    }
                ],