FIX: no need for downcasing second time

This commit is contained in:
Arpit Jalan 2020-05-25 19:20:15 +05:30
parent 2be79d94f5
commit 30849c8b37
1 changed files with 1 additions and 1 deletions

View File

@ -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|