refactor: remove unnecessary array map
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-client Pipeline failed
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
Johann150 2022-08-24 23:59:35 +02:00
parent 4f2a9f8911
commit 523d366ca3
Signed by: 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,