From 30849c8b37508e5f9f473f76f5f7c86bfe3e3179 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 25 May 2020 19:20:15 +0530 Subject: [PATCH] FIX: no need for downcasing second time --- lib/topic_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/topic_creator.rb b/lib/topic_creator.rb index 66108966f25..76ba682cb33 100644 --- a/lib/topic_creator.rb +++ b/lib/topic_creator.rb @@ -208,7 +208,7 @@ class TopicCreator def add_users(topic, usernames) return unless usernames - names = usernames.split(',').map(&:downcase).flatten + names = usernames.split(',').flatten len = 0 User.includes(:user_option).where(username_lower: names).find_each do |user|