This commit is contained in:
Hamid Reza Mohammadi 2026-08-04 16:25:07 +03:30
parent ca2f708add
commit cc13bb6157
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ else
}
</p>
<div class='spacer'>&nbsp;</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) />
}

View File

@ -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),