mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 16:03:02 +00:00
fix: typecheck
This commit is contained in:
parent
550d154f19
commit
2b24550ce2
2 changed files with 2 additions and 2 deletions
|
@ -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 ? u.description : '',
|
note: u.description !== null || undefined ? 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,
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace MisskeyEntity {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
username: string
|
username: string
|
||||||
description: string
|
description?: string
|
||||||
createdAt?: string
|
createdAt?: string
|
||||||
followingCount?: number
|
followingCount?: number
|
||||||
followersCount?: number
|
followersCount?: number
|
||||||
|
|
Loading…
Reference in a new issue