mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 07:43:09 +02:00
fix: wrong section
This commit is contained in:
parent
2b24550ce2
commit
86556f7913
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ namespace MisskeyAPI {
|
||||||
followers_count: u.followersCount ? u.followersCount : 0,
|
followers_count: u.followersCount ? u.followersCount : 0,
|
||||||
following_count: u.followingCount ? u.followingCount : 0,
|
following_count: u.followingCount ? u.followingCount : 0,
|
||||||
statuses_count: u.notesCount ? u.notesCount : 0,
|
statuses_count: u.notesCount ? u.notesCount : 0,
|
||||||
note: u.description ? u.description : '',
|
note: u.description !== null || undefined ? u.description as string : '',
|
||||||
url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct,
|
url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct,
|
||||||
avatar: u.avatarUrl,
|
avatar: u.avatarUrl,
|
||||||
avatar_static: u.avatarColor,
|
avatar_static: u.avatarColor,
|
||||||
|
@ -127,7 +127,7 @@ namespace MisskeyAPI {
|
||||||
followers_count: u.followersCount,
|
followers_count: u.followersCount,
|
||||||
following_count: u.followingCount,
|
following_count: u.followingCount,
|
||||||
statuses_count: u.notesCount,
|
statuses_count: u.notesCount,
|
||||||
note: u.description !== null || undefined ? u.description : '',
|
note: u.description ? u.description : '',
|
||||||
url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct,
|
url: u.host ? `https://${u.host}/@${u.username}` : host ? `https://${host}/@${u.username}` : acct,
|
||||||
avatar: u.avatarUrl,
|
avatar: u.avatarUrl,
|
||||||
avatar_static: u.avatarColor,
|
avatar_static: u.avatarColor,
|
||||||
|
|
Loading…
Reference in a new issue