refactor: remove unnecessary array map
This commit is contained in:
parent
4f2a9f8911
commit
523d366ca3
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ export async function createMessage(user: { id: User['id']; host: User['host'];
|
|||
text: message.text,
|
||||
userId: message.userId,
|
||||
visibility: 'specified',
|
||||
mentions: [ recipientUser ].map(u => u.id),
|
||||
mentions: [ recipientUser.id ],
|
||||
mentionedRemoteUsers: JSON.stringify([ recipientUser ].map(u => ({
|
||||
uri: u.uri,
|
||||
username: u.username,
|
||||
|
|
Loading…
Reference in a new issue