Add function to check if comment is reported

This commit is contained in:
bytedream 2022-06-23 16:59:04 +02:00
parent 9919a48e9a
commit f03287856b

View file

@ -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 {