Skip to content

Commit

Permalink
FIX: no need for downcasing second time
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed May 25, 2020
1 parent 2be79d9 commit 30849c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/topic_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def save_topic(topic)
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|
Expand Down

0 comments on commit 30849c8

Please sign in to comment.