DeleteAttachmentsByComment deletes all attachments associated with the given comment.
(commentID int64, remove bool)
| 191 | |
| 192 | // DeleteAttachmentsByComment deletes all attachments associated with the given comment. |
| 193 | func DeleteAttachmentsByComment(commentID int64, remove bool) (int, error) { |
| 194 | attachments, err := GetAttachmentsByCommentID(commentID) |
| 195 | if err != nil { |
| 196 | return 0, err |
| 197 | } |
| 198 | |
| 199 | return DeleteAttachments(attachments, remove) |
| 200 | } |
no test coverage detected