Issue #2372909 by Tom Verhaeghe: Comments to check '$comment->getOwner->isAnonymous()' instead of assuming anonymous is ID 0
parent
7022daa7dc
commit
010cfbbb13
|
@ -70,7 +70,7 @@
|
||||||
set classes = [
|
set classes = [
|
||||||
'comment',
|
'comment',
|
||||||
status != 'published' ? status,
|
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',
|
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
|
||||||
'clearfix',
|
'clearfix',
|
||||||
]
|
]
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
set classes = [
|
set classes = [
|
||||||
'comment',
|
'comment',
|
||||||
status != 'published' ? status,
|
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',
|
author_id and author_id == commented_entity.getOwnerId() ? 'by-' ~ commented_entity.getEntityTypeId() ~ '-author',
|
||||||
'clearfix',
|
'clearfix',
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue