Send notifications also for single comments

This commit is contained in:
Jonas Franz 2018-07-06 18:39:41 +02:00
parent d8ddade96e
commit dbc7aee713
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD

View File

@ -482,7 +482,7 @@ func sendCreateCommentAction(e *xorm.Session, opts *CreateCommentOptions, commen
// Check comment type.
switch opts.Type {
case CommentTypeCode:
if comment.Review == nil || comment.Review.Type <= ReviewTypePending {
if comment.Review != nil && comment.Review.Type <= ReviewTypePending {
break
}
fallthrough