FIX: Use username in bot's certificate.

* The default name generated can be weird sometimes.
This commit is contained in:
Guo Xiang Tan 2017-06-16 10:32:43 +09:00
parent d82dbd565b
commit 716b0235f9
1 changed files with 1 additions and 1 deletions

View File

@ -552,7 +552,7 @@ module DiscourseNarrativeBot
private
def name
(@user.name && !@user.name.blank? ? @user.name : @user.username).titleize
@user.username.titleize
end
def logo_group(size, width, height)