refactor: remove unnecessary array map

This commit is contained in:
Johann150 2022-08-24 23:59:35 +02:00
parent 4f2a9f8911
commit 523d366ca3
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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,