[backport] Small fix on imported comments from import
parent
b54e871363
commit
7ea2d5eb9c
|
@ -191,9 +191,9 @@ HistoryDirective = ($log, $loading, $qqueue, $template, $confirm) ->
|
||||||
return "Made #{size} changes" # TODO: i18n
|
return "Made #{size} changes" # TODO: i18n
|
||||||
|
|
||||||
renderComment = (comment) ->
|
renderComment = (comment) ->
|
||||||
if (comment.delete_comment_date or comment.delete_comment_user)
|
if (comment.delete_comment_date or comment.delete_comment_user?.name)
|
||||||
return templateDeletedComment({
|
return templateDeletedComment({
|
||||||
deleteCommentDate: moment(comment.delete_comment_date).format("DD MMM YYYY HH:mm")
|
deleteCommentDate: moment(comment.delete_comment_date).format("DD MMM YYYY HH:mm") if comment.delete_comment_date
|
||||||
deleteCommentUser: comment.delete_comment_user.name
|
deleteCommentUser: comment.delete_comment_user.name
|
||||||
deleteComment: comment.comment_html
|
deleteComment: comment.comment_html
|
||||||
activityId: comment.id
|
activityId: comment.id
|
||||||
|
|
Loading…
Reference in New Issue