Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: change `committerTime` into `committer.time`
xphoniex committed 3 years ago
commit 24d19b69d23858e3e9aa85470379eac61bb6c80d
parent 59e3afac6750ef5b1fc410100890e631e96e34a5
2 files changed +17 -17
modified radicle-httpd/src/api/json.rs
@@ -18,9 +18,9 @@ pub(crate) fn commit(commit: &Commit) -> serde_json::Value {
      "description": commit.description(),
      "committer": {
        "name": commit.committer.name,
-
        "email": commit.committer.email
-
      },
-
      "committerTime": commit.committer.time.seconds()
+
        "email": commit.committer.email,
+
        "time": commit.committer.time.seconds()
+
      }
    })
}

modified radicle-httpd/src/api/v1/projects.rs
@@ -533,9 +533,9 @@ mod routes {
                    "description": "",
                    "committer": {
                      "name": "Alice Liddell",
-
                      "email": "alice@radicle.xyz"
+
                      "email": "alice@radicle.xyz",
+
                      "time": 1673001014
                    },
-
                    "committerTime": 1673001014
                  },
                  "diff": {
                    "added": [
@@ -583,9 +583,9 @@ mod routes {
                    "description": "",
                    "committer": {
                      "name": "Alice Liddell",
-
                      "email": "alice@radicle.xyz"
+
                      "email": "alice@radicle.xyz",
+
                      "time": 1673001014
                    },
-
                    "committerTime": 1673001014
                  },
                  "diff": {
                    "added": [
@@ -657,9 +657,9 @@ mod routes {
                "description": "",
                "committer": {
                  "name": "Alice Liddell",
-
                  "email": "alice@radicle.xyz"
+
                  "email": "alice@radicle.xyz",
+
                  "time": 1673001014
                },
-
                "committerTime": 1673001014
              },
              "diff": {
                "added": [
@@ -737,9 +737,9 @@ mod routes {
                  "description": "",
                  "committer": {
                    "name": "Alice Liddell",
-
                    "email": "alice@radicle.xyz"
+
                    "email": "alice@radicle.xyz",
+
                    "time": 1673001014
                  },
-
                  "committerTime": 1673001014
                },
                "name": "",
                "path": "",
@@ -780,9 +780,9 @@ mod routes {
                "description": "",
                "committer": {
                  "name": "Alice Liddell",
-
                  "email": "alice@radicle.xyz"
+
                  "email": "alice@radicle.xyz",
+
                  "time": 1673001014
                },
-
                "committerTime": 1673001014
              },
              "name": "dir1",
              "path": "dir1",
@@ -861,9 +861,9 @@ mod routes {
                    "description": "",
                    "committer": {
                        "name": "Alice Liddell",
-
                        "email": "alice@radicle.xyz"
+
                        "email": "alice@radicle.xyz",
+
                        "time": 1673001014
                    },
-
                    "committerTime": 1673001014
                },
                "name": "README",
                "path": "README"
@@ -897,9 +897,9 @@ mod routes {
                    "description": "",
                    "committer": {
                        "name": "Alice Liddell",
-
                        "email": "alice@radicle.xyz"
+
                        "email": "alice@radicle.xyz",
+
                        "time": 1673001014
                    },
-
                    "committerTime": 1673001014
                },
                "name": "README",
                "path": "README"