tangled
alpha
login
or
join now
willdot.net
/
cocoon
forked from
hailey.at/cocoon
0
fork
atom
An atproto PDS written in Go
0
fork
atom
overview
issues
pulls
pipelines
don't include commit in applywrites items
hailey.at
11 months ago
dd4c78fa
516057d8
+6
-1
2 changed files
expand all
collapse all
unified
split
server
handle_repo_apply_writes.go
repo.go
+4
server/handle_repo_apply_writes.go
···
60
60
return helpers.ServerError(e, nil)
61
61
}
62
62
63
63
+
for i := range results {
64
64
+
results[i].Commit = nil
65
65
+
}
66
66
+
63
67
return e.JSON(200, ComAtprotoRepoApplyWritesResponse{
64
68
Commit: *results[0].Commit,
65
69
Results: results,
+2
-1
server/repo.go
···
83
83
}
84
84
85
85
type ApplyWriteResult struct {
86
86
+
Type string `json:"$type,omitempty"`
86
87
Uri string `json:"uri"`
87
88
Cid string `json:"cid"`
88
88
-
Commit *RepoCommit `json:"commit"`
89
89
+
Commit *RepoCommit `json:"commit,omitempty"`
89
90
ValidationStatus *string `json:"validationStatus"`
90
91
}
91
92