mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fix build error
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user