forked from hailey.at/cocoon
An atproto PDS written in Go

don't include commit in applywrites items

Changed files
+6 -1
server
+4
server/handle_repo_apply_writes.go
··· 60 60 return helpers.ServerError(e, nil) 61 61 } 62 62 63 + for i := range results { 64 + results[i].Commit = nil 65 + } 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 + Type string `json:"$type,omitempty"` 86 87 Uri string `json:"uri"` 87 88 Cid string `json:"cid"` 88 - Commit *RepoCommit `json:"commit"` 89 + Commit *RepoCommit `json:"commit,omitempty"` 89 90 ValidationStatus *string `json:"validationStatus"` 90 91 } 91 92