From f03287856b3f509f9ac1fbe68fe9580deef13a8b Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 23 Jun 2022 16:59:04 +0200 Subject: [PATCH] Add function to check if comment is reported --- comment.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comment.go b/comment.go index 811433f..98c400c 100644 --- a/comment.go +++ b/comment.go @@ -217,6 +217,10 @@ func (c *Comment) Report() error { return c.vote("inappropriate", "reported") } +func (c *Comment) IsReported() bool { + return c.markedAs("reported") +} + // RemoveReport removes the report request from the comment. Only works if the user // has reported the comment. func (c *Comment) RemoveReport() error {