mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Add function to check if comment is reported
This commit is contained in:
parent
9919a48e9a
commit
f03287856b
1 changed files with 4 additions and 0 deletions
|
|
@ -217,6 +217,10 @@ func (c *Comment) Report() error {
|
||||||
return c.vote("inappropriate", "reported")
|
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
|
// RemoveReport removes the report request from the comment. Only works if the user
|
||||||
// has reported the comment.
|
// has reported the comment.
|
||||||
func (c *Comment) RemoveReport() error {
|
func (c *Comment) RemoveReport() error {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue