#495 bug fix
This commit is contained in:
parent
ca2f708add
commit
cc13bb6157
@ -52,7 +52,7 @@ else
|
||||
}
|
||||
</p>
|
||||
<div class='spacer'> </div>
|
||||
@foreach (var reply in Model.Comment.Replies)
|
||||
@foreach (var reply in Model.Comment.Replies ?? Array.Empty<RMuseum.Models.Ganjoor.ViewModels.GanjoorCommentSummaryViewModel>())
|
||||
{
|
||||
<partial name="_CommentPartial.cshtml" model=Model.GetCommentModel(reply) />
|
||||
}
|
||||
|
||||
@ -1130,7 +1130,7 @@ namespace RMuseum.Services.Implementation
|
||||
PublishStatus = comment.Status == PublishStatus.Awaiting ? "در انتظار تأیید" : "",
|
||||
InReplyToId = comment.InReplyToId,
|
||||
UserId = comment.UserId,
|
||||
Replies = { },
|
||||
Replies = Array.Empty<GanjoorCommentSummaryViewModel>(),
|
||||
CoupletIndex = coupletIndex == null ? -1 : (int)coupletIndex,
|
||||
MyComment = true,
|
||||
CoupletSummary = _CutSummary(coupletSummary),
|
||||
|
||||
Loading…
Reference in New Issue
Block a user