diff --git a/js/src/forum/pages/discussions/PrivateDiscussionComposer.js b/js/src/forum/pages/discussions/PrivateDiscussionComposer.js index 05ef87f..55bc2fc 100644 --- a/js/src/forum/pages/discussions/PrivateDiscussionComposer.js +++ b/js/src/forum/pages/discussions/PrivateDiscussionComposer.js @@ -104,7 +104,8 @@ export default class PrivateDiscussionComposer extends DiscussionComposer { } addDefaultRecipients(username) { - const user = app.store.getBy('users', 'username', username); + console.log(username); + const user = app.store.getBy('users', 'slug', username); this.composer.fields.recipients.add('users:' + app.session.user.id(), app.session.user);