Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit d9d1c90

Browse files
Update app/controllers/discourse_ai/admin/ai_personas_controller.rb
Co-authored-by: Keegan George <[email protected]>
1 parent bd1420d commit d9d1c90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/discourse_ai/admin/ai_personas_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def stream_reply
128128
user = nil
129129

130130
if params[:username]
131-
user = User.find_by(username_lower: params[:username].downcase)
131+
user = User.find_by_username(params[:username])
132132
return render_json_error(I18n.t("discourse_ai.errors.user_not_found")) if user.nil?
133133
elsif params[:user_unique_id]
134134
user = stage_user

0 commit comments

Comments
 (0)