From b9752b20cb7f3b690fe9afb9d3bc03e93466261a Mon Sep 17 00:00:00 2001 From: Mar0xy Date: Mon, 25 Sep 2023 16:46:02 +0200 Subject: [PATCH] upd: fetch header on normal user call --- packages/megalodon/src/misskey/api_client.ts | 4 ++-- packages/megalodon/src/misskey/entities/user.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/megalodon/src/misskey/api_client.ts b/packages/megalodon/src/misskey/api_client.ts index 854c31222f..acfad963db 100644 --- a/packages/megalodon/src/misskey/api_client.ts +++ b/packages/megalodon/src/misskey/api_client.ts @@ -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: [], diff --git a/packages/megalodon/src/misskey/entities/user.ts b/packages/megalodon/src/misskey/entities/user.ts index 4c2f8adcf8..499c62e708 100644 --- a/packages/megalodon/src/misskey/entities/user.ts +++ b/packages/megalodon/src/misskey/entities/user.ts @@ -11,6 +11,7 @@ namespace MisskeyEntity { notesCount?: number host: string | null avatarUrl: string + bannerUrl?: string | null avatarColor: string emojis: Array | { [key: string]: string } }