mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
httpd: Change sha1 into id
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ use serde_json::json;
|
||||
/// Returns JSON of a commit.
|
||||
pub(crate) fn commit(commit: &Commit) -> serde_json::Value {
|
||||
json!({
|
||||
"sha1": commit.id,
|
||||
"id": commit.id,
|
||||
"author": {
|
||||
"name": commit.author.name,
|
||||
"email": commit.author.email
|
||||
|
||||
Reference in New Issue
Block a user