FIX: no need for downcasing second time
This commit is contained in:
parent
2be79d94f5
commit
30849c8b37
|
@ -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|
|
||||
|
|
Loading…
Reference in New Issue