Commit 41c74cec authored by Stefan Kahlhöfer's avatar Stefan Kahlhöfer Committed by Rubén Dávila

Downcased user or email search for avatar_icon.

Signed-off-by: default avatarRubén Dávila <rdavila84@gmail.com>
parent 3a227b5a
...@@ -72,7 +72,7 @@ module ApplicationHelper ...@@ -72,7 +72,7 @@ module ApplicationHelper
if user_or_email.is_a?(User) if user_or_email.is_a?(User)
user = user_or_email user = user_or_email
else else
user = User.find_by(email: user_or_email) user = User.find_by(email: user_or_email.downcase)
end end
if user if user
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment