upd: update user data fetching on masto api
This commit is contained in:
@@ -88,10 +88,10 @@ namespace MisskeyAPI {
|
||||
suspended: null,
|
||||
limited: null,
|
||||
created_at: u.createdAt ? u.createdAt : '',
|
||||
followers_count: 0,
|
||||
following_count: 0,
|
||||
statuses_count: 0,
|
||||
note: '',
|
||||
followers_count: u.followersCount ? u.followersCount : 0,
|
||||
following_count: u.followingCount ? u.followingCount : 0,
|
||||
statuses_count: u.notesCount ? u.notesCount : 0,
|
||||
note: u.description ? 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,11 @@ namespace MisskeyEntity {
|
||||
id: string
|
||||
name: string
|
||||
username: string
|
||||
description?: string
|
||||
createdAt?: string
|
||||
followingCount?: number
|
||||
followersCount?: number
|
||||
notesCount?: number
|
||||
host: string | null
|
||||
avatarUrl: string
|
||||
avatarColor: string
|
||||
|
||||
Reference in New Issue
Block a user