mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 02:03:08 +02: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,
|
||||
following_count: u.followingCount,
|
||||
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,
|
||||
avatar: u.avatarUrl,
|
||||
avatar_static: u.avatarColor,
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace MisskeyEntity {
|
|||
id: string
|
||||
name: string
|
||||
username: string
|
||||
description: string
|
||||
description?: string
|
||||
createdAt?: string
|
||||
followingCount?: number
|
||||
followersCount?: number
|
||||
|
|
Loading…
Reference in a new issue