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 return helpers.ServerError(e, nil) 61 } 62 63 return e.JSON(200, ComAtprotoRepoApplyWritesResponse{ 64 Commit: *results[0].Commit, 65 Results: results,
··· 60 return helpers.ServerError(e, nil) 61 } 62 63 + for i := range results { 64 + results[i].Commit = nil 65 + } 66 + 67 return e.JSON(200, ComAtprotoRepoApplyWritesResponse{ 68 Commit: *results[0].Commit, 69 Results: results,
+2 -1
server/repo.go
··· 83 } 84 85 type ApplyWriteResult struct { 86 Uri string `json:"uri"` 87 Cid string `json:"cid"` 88 - Commit *RepoCommit `json:"commit"` 89 ValidationStatus *string `json:"validationStatus"` 90 } 91
··· 83 } 84 85 type ApplyWriteResult struct { 86 + Type string `json:"$type,omitempty"` 87 Uri string `json:"uri"` 88 Cid string `json:"cid"` 89 + Commit *RepoCommit `json:"commit,omitempty"` 90 ValidationStatus *string `json:"validationStatus"` 91 } 92