diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-13 10:14:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 10:14:16 -0400 |
commit | 3ebfb369530e28ca3246c5cd2833e666edce9c90 (patch) | |
tree | a91ef74768301db727ca062354af9cac2b444001 /api4/params.go | |
parent | a284cd8c1817bb5419cb9eae118c85cd7e99c039 (diff) | |
download | chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.gz chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.bz2 chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.zip |
Implement compliance endpoints for APIv4 (#5683)
* Implement compliance endpoints for APIv4
* Add paging to get reports endpoint
Diffstat (limited to 'api4/params.go')
-rw-r--r-- | api4/params.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api4/params.go b/api4/params.go index b1688a859..15f632195 100644 --- a/api4/params.go +++ b/api4/params.go @@ -24,6 +24,7 @@ type ApiParams struct { FileId string CommandId string HookId string + ReportId string EmojiId string Email string Username string @@ -68,6 +69,10 @@ func ApiParamsFromRequest(r *http.Request) *ApiParams { params.HookId = val } + if val, ok := props["report_id"]; ok { + params.ReportId = val + } + if val, ok := props["emoji_id"]; ok { params.EmojiId = val } |