Fix build error

This commit is contained in:
myates
2015-09-19 22:00:37 +10:00
parent df583ea571
commit e6c042d1a0

View File

@@ -121,7 +121,7 @@ namespace Orchard.Comments.Services {
public void DeleteComment(int commentId) {
// Get latest because the comment may be unpublished if the anti-spam module has caught it
_orchardServices.ContentManager.Remove(_orchardServices.ContentManager.Get<CommentPart>(commentId, VersionOptions.Latest));
_orchardServices.ContentManager.Remove(_orchardServices.ContentManager.Get<CommentPart>(commentId, VersionOptions.Latest).ContentItem);
}
public bool CommentsDisabledForCommentedContent(int id) {