[mastodon-client] userDetail: fallback to username if displayname is null

This commit is contained in:
Laura Hausmann 2023-07-10 18:05:34 +02:00
parent f57f2d868f
commit a2d870a803
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -156,7 +156,7 @@ namespace MisskeyAPI {
id: u.id, id: u.id,
username: u.username, username: u.username,
acct: acct, acct: acct,
display_name: u.name, display_name: u.name || u.username,
locked: u.isLocked, locked: u.isLocked,
created_at: u.createdAt, created_at: u.createdAt,
followers_count: u.followersCount, followers_count: u.followersCount,