Fetches a user's username or display name.
Chooses based on the format option set in the admin settings page.
An instance of the User model to fetch the username for
If true, uses user.displayName(), otherwise, uses user.username()
true
user.displayName()
user.username()
Fetches a user's username or display name.
Chooses based on the format option set in the admin settings page.