You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 18, 2018. It is now read-only.
The code is done to make sure that it shows the name(s) if available, else revert to the username. However it was done wrong. It keeps using the username regardless.
To fix this, change && to || in this line: if( Text::isNotEmpty($Post->authorFirstName()) && Text::isNotEmpty($Post->authorLastName()) )
The text was updated successfully, but these errors were encountered:
AbrahamAriel
changed the title
Poster name on home and post is not shown properly
Author name on home and post is not shown properly on Skeleton
Jan 16, 2016
The code is done to make sure that it shows the name(s) if available, else revert to the username. However it was done wrong. It keeps using the username regardless.
To fix this, change && to || in this line:
if( Text::isNotEmpty($Post->authorFirstName()) && Text::isNotEmpty($Post->authorLastName()) )
Fixed:
if( Text::isNotEmpty($Post->authorFirstName()) || Text::isNotEmpty($Post->authorLastName()) )
The text was updated successfully, but these errors were encountered: