Skip to content

Commit

Permalink
Merge pull request #16165 from wordpress-mobile/fix/comment_reply_crash
Browse files Browse the repository at this point in the history
Comment detail: fix crash when replying to a comment
  • Loading branch information
ScoutHarris committed Mar 26, 2021
2 parents 1f9e9d6 + 5cec4db commit 5816017
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -49,7 +49,10 @@ open class CommentsTableViewCell: WPTableViewCell {
pending = (comment.status == CommentStatusPending)
postTitle = comment.titleForDisplay() ?? Labels.noTitle
content = comment.contentPreviewForDisplay() ?? String()
timestamp = comment.dateCreated.mediumString()

if let dateCreated = comment.dateCreated {
timestamp = dateCreated.mediumString()
}

if let avatarURLForDisplay = comment.avatarURLForDisplay() {
downloadGravatarWithURL(avatarURLForDisplay)
Expand Down

0 comments on commit 5816017

Please sign in to comment.