small fix

This commit is contained in:
Swrup 2022-02-28 18:35:16 +01:00
parent d7dc4a5dd6
commit 07c428c473
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 () =