upd: fetch header on normal user call

This commit is contained in:
Mar0xy 2023-09-25 16:46:02 +02:00
parent 4abdf6f7a6
commit b9752b20cb
No known key found for this signature in database
GPG Key ID: 56569BBE47D2C828
2 changed files with 3 additions and 2 deletions

View File

@ -96,8 +96,8 @@ namespace MisskeyAPI {
url: acctUrl,
avatar: u.avatarUrl,
avatar_static: u.avatarUrl,
header: '',
header_static: '',
header: u.bannerUrl ? u.bannerUrl : '',
header_static: u.bannerUrl ? u.bannerUrl : '',
emojis: mapEmojis(u.emojis),
moved: null,
fields: [],

View File

@ -11,6 +11,7 @@ namespace MisskeyEntity {
notesCount?: number
host: string | null
avatarUrl: string
bannerUrl?: string | null
avatarColor: string
emojis: Array<Emoji> | { [key: string]: string }
}