1
0
Fork 1
mirror of https://example.com synced 2024-11-23 10:56:38 +09:00

[mastodon-client] render bio newlines correctly

This commit is contained in:
Laura Hausmann 2023-07-08 02:37:11 +02:00
parent 326b0ea408
commit 770e8bdf6d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -161,7 +161,7 @@ namespace MisskeyAPI {
followers_count: u.followersCount,
following_count: u.followingCount,
statuses_count: u.notesCount,
note: u.description,
note: u.description?.replace(/\n|\\n/g, '<br>') ?? '',
url: acctUrl,
avatar: u.avatarUrl,
avatar_static: u.avatarUrl,