From a5d94056db34ffc7f007996daf2fcc0091bc1288 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 27 Sep 2021 14:48:27 -0400 Subject: [PATCH] Adding unresolved_only --- src/interfaces/api/comment.ts | 5 +++++ src/interfaces/api/post.ts | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/interfaces/api/comment.ts b/src/interfaces/api/comment.ts index 8a12def..a58bfae 100644 --- a/src/interfaces/api/comment.ts +++ b/src/interfaces/api/comment.ts @@ -121,6 +121,11 @@ export interface ListCommentReports { * if no community is given, it returns reports for all communities moderated by the auth user. */ community_id?: number; + + /** + * Only shows the unresolved reports. + */ + unresolved_only?: boolean; auth: string; } diff --git a/src/interfaces/api/post.ts b/src/interfaces/api/post.ts index cb9a154..0a52422 100644 --- a/src/interfaces/api/post.ts +++ b/src/interfaces/api/post.ts @@ -143,7 +143,11 @@ export interface ListPostReports { /** * if no community is given, it returns reports for all communities moderated by the auth user. */ - community?: number; + community_id?: number; + /** + * Only shows the unresolved reports. + */ + unresolved_only?: boolean; auth: string; }