mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
don't try to render a name if the deleter is nil
This commit is contained in:
parent
fee56de1d7
commit
7b1a98291b
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ article.block.communication id="comment_#{@comment.id}"
|
||||||
strong.comment_deleted
|
strong.comment_deleted
|
||||||
' 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
|
||||||
| )
|
| )
|
||||||
|
|
|
@ -11,7 +11,7 @@ article.block.communication id="post_#{@post.id}"
|
||||||
strong.comment_deleted
|
strong.comment_deleted
|
||||||
' Deletion reason:
|
' Deletion reason:
|
||||||
=> @post.deletion_reason
|
=> @post.deletion_reason
|
||||||
= if can?(@conn, :hide, @post) do
|
= if can?(@conn, :hide, @post) and not is_nil(@post.deleted_by) do
|
||||||
| (
|
| (
|
||||||
= @post.deleted_by.name
|
= @post.deleted_by.name
|
||||||
| )
|
| )
|
||||||
|
|
Loading…
Reference in a new issue