mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 14:15:11 +08:00
Revert "FIX: when creating new PM username/groupname should be case-insensitive"
This reverts commit 2be79d94f5226099d287aa9c69e5a2814baff420. This is affecting multiple code path. Investigating.
This commit is contained in:
@ -747,8 +747,8 @@ class PostsController < ApplicationController
|
||||
end
|
||||
|
||||
if recipients
|
||||
recipients = recipients.split(",").map(&:downcase)
|
||||
groups = Group.messageable(current_user).where('lower(name) in (?)', recipients).pluck('name')
|
||||
recipients = recipients.split(",")
|
||||
groups = Group.messageable(current_user).where('name in (?)', recipients).pluck('name')
|
||||
recipients -= groups
|
||||
emails = recipients.select { |user| user.match(/@/) }
|
||||
recipients -= emails
|
||||
|
Reference in New Issue
Block a user