mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
FIX: Deprecation usernames
is now recipients
This commit is contained in:
parent
b5735f98e9
commit
b7fe5f04ba
@ -965,16 +965,16 @@ export default Controller.extend(bufferedProperty("model"), {
|
||||
let users = this.get("model.details.allowed_users");
|
||||
let groups = this.get("model.details.allowed_groups");
|
||||
|
||||
let usernames = [];
|
||||
users.forEach(user => usernames.push(user.username));
|
||||
groups.forEach(group => usernames.push(group.name));
|
||||
usernames = usernames.join();
|
||||
let recipients = [];
|
||||
users.forEach(user => recipients.push(user.username));
|
||||
groups.forEach(group => recipients.push(group.name));
|
||||
recipients = recipients.join();
|
||||
|
||||
options = {
|
||||
action: Composer.PRIVATE_MESSAGE,
|
||||
archetypeId: "private_message",
|
||||
draftKey: post.topic.draft_key,
|
||||
usernames: usernames
|
||||
recipients
|
||||
};
|
||||
} else {
|
||||
options = {
|
||||
|
Loading…
Reference in New Issue
Block a user