mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Convert a lot of :a => b to a: b and bring peace to the world
This commit is contained in:
@@ -52,7 +52,7 @@ class PostCreator
|
||||
if @opts[:archetype] == Archetype.private_message
|
||||
|
||||
usernames = @opts[:target_usernames].split(',')
|
||||
User.where(:username => usernames).each do |u|
|
||||
User.where(username: usernames).each do |u|
|
||||
|
||||
unless guardian.can_send_private_message?(u)
|
||||
topic.errors.add(:archetype, :cant_send_pm)
|
||||
|
||||
Reference in New Issue
Block a user