add moderation_action type
This commit is contained in:
parent
3029661ecf
commit
18ebe6e107
4 changed files with 47 additions and 16 deletions
|
|
@ -1,6 +1,22 @@
|
|||
open Db
|
||||
include Bindings
|
||||
|
||||
type moderation_action =
|
||||
| Ignore
|
||||
| Delete
|
||||
| Banish
|
||||
|
||||
let moderation_action_to_string = function
|
||||
| Ignore -> "ignore"
|
||||
| Delete -> "delete"
|
||||
| Banish -> "banish"
|
||||
|
||||
let moderation_action_from_string = function
|
||||
| "ignore" -> Some Ignore
|
||||
| "delete" -> Some Delete
|
||||
| "banish" -> Some Banish
|
||||
| _ -> None
|
||||
|
||||
type thread_data =
|
||||
{ subject : string
|
||||
; lng : float
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue