From 716b0235f99307290e4e1d338eeb23084fd033ac Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 16 Jun 2017 10:32:43 +0900 Subject: [PATCH] FIX: Use username in bot's certificate. * The default name generated can be weird sometimes. --- .../lib/discourse_narrative_bot/certificate_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb index 03034915904..f36c264720e 100644 --- a/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb +++ b/plugins/discourse-narrative-bot/lib/discourse_narrative_bot/certificate_generator.rb @@ -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)