Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Remove `lastCommit` in `/tree` for entries
xphoniex committed 3 years ago
commit 2125128b5fbf473c5af943056a7e6aa9aa804326
parent 9d8c5f404bac289d7f6101cb856251759204e27c
2 files changed +0 -4
modified radicle-httpd/src/api/json.rs
@@ -46,7 +46,6 @@ pub(crate) fn tree(tree: &Tree, path: &str, stats: &Stats) -> Value {
            json!({
                "path": prefix.join(entry.name()),
                "name": entry.name(),
-
                "lastCommit": Value::Null,
                "kind": if entry.is_tree() { "tree" } else { "blob" },
            })
        })
modified radicle-httpd/src/api/v1/projects.rs
@@ -717,13 +717,11 @@ mod routes {
                  {
                    "path": "dir1",
                    "name": "dir1",
-
                    "lastCommit": null,
                    "kind": "tree"
                  },
                  {
                    "path": "README",
                    "name": "README",
-
                    "lastCommit": null,
                    "kind": "blob"
                  }
                ],
@@ -766,7 +764,6 @@ mod routes {
                {
                  "path": "dir1/README",
                  "name": "README",
-
                  "lastCommit": null,
                  "kind": "blob"
                }
              ],