fix matching form on category

This commit is contained in:
Swrup 2022-03-09 20:43:45 +01:00
parent 18bbeba3c9
commit dac20304c4
2 changed files with 11 additions and 2 deletions

View file

@ -87,4 +87,4 @@ let get_dirs name =
let admins = get_dirs "admin"
let categories = get_dirs "category"
let categories = List.sort_uniq compare (get_dirs "category")

View file

@ -350,7 +350,16 @@ let babillard_post request =
; ("subject", [ (_, subject) ])
; ("tags", [ (_, tags) ])
; ("thread-comment", [ (_, comment) ])
] -> (
]
| `Ok
(("alt", [ (_, alt) ])
:: ("file", file)
:: ("lat-input", [ (_, lat) ])
:: ("lng-input", [ (_, lng) ])
:: ("subject", [ (_, subject) ])
:: ("tags", [ (_, tags) ])
:: ("thread-comment", [ (_, comment) ])
:: ([] as categories) ) -> (
let categories =
List.map (fun (_name, category) -> category) categories
in