mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-14 17:10:54 -04:00
fix deprecation
This commit is contained in:
parent
864607e01f
commit
b01743620a
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class TopicCreator
|
||||||
|
|
||||||
def add_users(topic, usernames)
|
def add_users(topic, usernames)
|
||||||
return unless usernames
|
return unless usernames
|
||||||
User.where(username: usernames.split(',')).each do |user|
|
User.where(username: usernames.split(',').flatten).each do |user|
|
||||||
check_can_send_permission!(topic, user)
|
check_can_send_permission!(topic, user)
|
||||||
@added_users << user
|
@added_users << user
|
||||||
topic.topic_allowed_users.build(user_id: user.id)
|
topic.topic_allowed_users.build(user_id: user.id)
|
||||||
|
|
Loading…
Reference in a new issue