diff options
| author | historia <[not public]> | 2026-10-05 17:31:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-10-05 17:31:50 -0400 |
| commit | 516fd29da423432ef6dfded21a984f1d15dcab1a (patch) | |
| tree | eb2dabe325a1335dedac28a93453df643ef986f2 /internal/admin/api_entity.go | |
| parent | e42952469dadfb3535633c66c881050ac128703c (diff) | |
| download | thehouseoficarus-516fd29da423432ef6dfded21a984f1d15dcab1a.tar.gz | |
fix: slop casino and economy fixes
Diffstat (limited to 'internal/admin/api_entity.go')
| -rw-r--r-- | internal/admin/api_entity.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/admin/api_entity.go b/internal/admin/api_entity.go index 204c59e..04b9dca 100644 --- a/internal/admin/api_entity.go +++ b/internal/admin/api_entity.go @@ -230,6 +230,10 @@ func (s *AdminServer) entityCreate(w http.ResponseWriter, r *http.Request, c ent c.fail(w, http.StatusBadRequest, c.invalidID()) return } + // Editor-only keys never belong in the file (the update path drops them + // too); without this a GET->POST round trip poisons the YAML. + delete(m, "_path") + delete(m, "_raw") if _, _, err := c.find(s, id); err == nil { c.fail(w, http.StatusConflict, c.noun+" already exists") return |
