aboutsummaryrefslogtreecommitdiffstats
path: root/services/comments
diff options
context:
space:
mode:
Diffstat (limited to 'services/comments')
-rw-r--r--services/comments/comments.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/comments/comments.go b/services/comments/comments.go
index ad79eec4fb..f8bdc8153b 100644
--- a/services/comments/comments.go
+++ b/services/comments/comments.go
@@ -43,8 +43,8 @@ func UpdateComment(c *models.Comment, doer *models.User, oldContent string) erro
}
// DeleteComment deletes the comment
-func DeleteComment(comment *models.Comment, doer *models.User) error {
- if err := models.DeleteComment(comment, doer); err != nil {
+func DeleteComment(doer *models.User, comment *models.Comment) error {
+ if err := models.DeleteComment(comment); err != nil {
return err
}