deleted by could be nil

This commit is contained in:
byte[] 2020-01-18 23:12:40 -05:00
parent feefc2e5a7
commit 4c4dc4b5ce

View file

@ -16,7 +16,7 @@ article.block.communication id="comment_#{@comment.id}"
' Deletion reason: ' Deletion reason:
=<> @comment.deletion_reason =<> @comment.deletion_reason
= if can?(@conn, :hide, @comment) do = if can?(@conn, :hide, @comment) and not is_nil(@comment.deleted_by) do
| ( | (
= @comment.deleted_by.name = @comment.deleted_by.name
| ) | )