add: description support for mastodon

This commit is contained in:
Mar0xy 2023-09-25 21:27:39 +02:00
parent a505e51777
commit b569ac911e
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
3 changed files with 5 additions and 2 deletions

View file

@ -92,7 +92,7 @@ namespace MisskeyAPI {
followers_count: u.followersCount ? u.followersCount : 0,
following_count: u.followingCount ? u.followingCount : 0,
statuses_count: u.notesCount ? u.notesCount : 0,
note: '',
note: u.description ? u.description : '',
url: acctUrl,
avatar: u.avatarUrl,
avatar_static: u.avatarUrl,

View file

@ -6,6 +6,7 @@ namespace MisskeyEntity {
name: string
username: string
createdAt?: string
description?: string
followingCount?: number
followersCount?: number
notesCount?: number