From 516fd29da423432ef6dfded21a984f1d15dcab1a Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 17:31:50 -0400 Subject: fix: slop casino and economy fixes --- internal/admin/api_entity.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/admin/api_entity.go') 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 -- cgit v1.2.3