Issue #2372909 by Tom Verhaeghe: Comments to check '$comment->getOwner->isAnonymous()' instead of assuming anonymous is ID 0

8.0.x
Alex Pott 2014-11-21 11:10:34 +00:00
parent 7022daa7dc
commit 010cfbbb13
2 changed files with 2 additions and 2 deletions

View File

@ -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',
]

View File

@ -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',
]