Commit 010cfbbb authored by alexpott's avatar alexpott

Issue #2372909 by Tom Verhaeghe: Comments to check...

Issue #2372909 by Tom Verhaeghe: Comments to check '$comment->getOwner->isAnonymous()' instead of assuming anonymous is ID 0
parent 7022daa7
......@@ -70,7 +70,7 @@
set classes = [
'comment',
status != 'published' ? status,
not author_id ? 'by-anonymous',
comment.owner.anonymous ? 'by-anonymous',
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
'clearfix',
]
......
......@@ -68,7 +68,7 @@
set classes = [
'comment',
status != 'published' ? status,
not author_id ? 'by-anonymous',
comment.owner.anonymous ? 'by-anonymous',
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
'clearfix',
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment