forgot to replace the name with the displayname...

This commit is contained in:
Ralf Teusner
2016-05-01 12:13:19 +02:00
parent 1f7f2865a0
commit af077d10c4

View File

@ -41,7 +41,7 @@ class CommentsController < ApplicationController
# if the user is internal, set the name
@comments.map{|comment|
comment.username = comment.user.name
comment.username = comment.user.displayname
# alternative: # if the user is external, fetch the displayname from xikolo
# Xikolo::UserClient.get(comment.user_id.to_s)[:display_name]
}