remove restriction on sync.GetRecord

This commit is contained in:
Evan Jarrett
2025-10-22 11:23:18 -05:00
parent 3e9a496a5d
commit fde8421dac
-6
View File
@@ -578,12 +578,6 @@ func (h *XRPCHandler) HandleSyncGetRecord(w http.ResponseWriter, r *http.Request
return
}
// Support both captain and crew collections
if collection != atproto.CaptainCollection && collection != atproto.CrewCollection {
http.Error(w, "collection not found", http.StatusNotFound)
return
}
// Use repomgr to get record proof (repo head + all blocks in MST path to record)
repoHead, blocks, err := h.pds.repomgr.GetRecordProof(r.Context(), h.pds.uid, collection, rkey)
if err != nil {