Allow title override for user avatars

This commit is contained in:
James Kiesel 2016-10-13 13:43:22 -04:00
parent 20c9c60dea
commit d76d78f855
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@ function renderAvatar(user, options) {
if (!username || !avatarTemplate) { return ''; }
let title;
if (!options.ignoreTitle) {
let title = options.title;
if (!title && !options.ignoreTitle) {
// first try to get a title
title = Em.get(user, 'title');
// if there was no title provided