From 219b45a3c0bc0a177f0ad6b9a72aad68ca1609be Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 13:15:09 +0200 Subject: [PATCH] fix: new lines in description not being translated --- packages/megalodon/src/misskey/api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 3726f0a5a..6048d62da 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -127,7 +127,7 @@ namespace MisskeyAPI { followers_count: u.followersCount, following_count: u.followingCount, statuses_count: u.notesCount, - note: u.description ? u.description : '', + note: u.description ? u.description.replace(/\n|\\n/g, "
") : '', url: acctUrl, avatar: u.avatarUrl, avatar_static: u.avatarUrl,