aboutsummaryrefslogtreecommitdiff
path: root/models/comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/comment.go')
-rw-r--r--models/comment.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/comment.go b/models/comment.go
index 66531bbb..67fc2511 100644
--- a/models/comment.go
+++ b/models/comment.go
@@ -500,7 +500,7 @@ func DeleteCommentByID(doer *User, id int64) error {
return err
}
- if _, err = sess.Id(comment.ID).Delete(new(Comment)); err != nil {
+ if _, err = sess.ID(comment.ID).Delete(new(Comment)); err != nil {
return err
}