Skip to content

Commit

Permalink
fix: search user by slug #176
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Mar 24, 2023
1 parent 086cb32 commit 0f28bdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/src/forum/pages/discussions/PrivateDiscussionComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 0f28bdc

Please sign in to comment.