diff --git a/app/controllers/bbb_client_controller.rb b/app/controllers/bbb_client_controller.rb index c7f7b4b..0e6b238 100644 --- a/app/controllers/bbb_client_controller.rb +++ b/app/controllers/bbb_client_controller.rb @@ -60,7 +60,8 @@ module BigBlue if data['response']['returncode'] == "SUCCESS" att = data['response']['attendees']['attendee'] usernames = att.is_a?(Array) ? att.pluck("userID") : [att["userID"]] - users = User.where("lower(username) IN (?)", usernames) + users = User.where("username IN (?)", usernames) + avatars = users.map do |s| { name: s.name || s.username,