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

hack: emmpty

Changed files
+6
server
+6
server/repo.go
··· 138 138 return nil, err 139 139 } 140 140 mm := MarshalableMap(out) 141 + 142 + // HACK: if a record doesn't contain a $type, we can manually set it here based on the op's collection 143 + if mm["$type"] == "" { 144 + mm["$type"] = op.Collection 145 + } 146 + 141 147 nc, err := r.PutRecord(context.TODO(), op.Collection+"/"+*op.Rkey, &mm) 142 148 if err != nil { 143 149 return nil, err