From af077d10c43fb0c30f1e13283cc385d45e4117d2 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Sun, 1 May 2016 12:13:19 +0200 Subject: [PATCH] forgot to replace the name with the displayname... --- app/controllers/comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/comments_controller.rb b/app/controllers/comments_controller.rb index 82e892b8..2335a469 100644 --- a/app/controllers/comments_controller.rb +++ b/app/controllers/comments_controller.rb @@ -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] }