small fix

This commit is contained in:
Swrup 2022-02-28 18:35:16 +01:00
parent 595489978d
commit cb12b4a2a8
3 changed files with 18 additions and 18 deletions

View file

@ -302,7 +302,7 @@ let feed thread_id =
let* posts = get_posts ids in
let posts = List.sort (fun a b -> compare b.date a.date) posts in
let* last_update =
match posts with op :: _ -> Ok op.date | _ -> Error "empty thread"
match posts with [] -> Error "empty thread" | op :: _l -> Ok op.date
in
let entries fmt () =