(comment Comment)
| 195 | } |
| 196 | |
| 197 | func formatHiddenComment(comment Comment) string { |
| 198 | var b strings.Builder |
| 199 | fmt.Fprint(&b, comment.AuthorLogin()) |
| 200 | if comment.Association() != "NONE" { |
| 201 | fmt.Fprintf(&b, " (%s)", text.Title(comment.Association())) |
| 202 | } |
| 203 | fmt.Fprintf(&b, " • This comment has been marked as %s\n\n", comment.HiddenReason()) |
| 204 | return b.String() |
| 205 | } |
no test coverage detected