summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 13:02:46 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-11-07 13:02:46 +0900
commitedbe30a3df3ca4e2255f7532d26348fda942e5d3 (patch)
treed70afcc3b8cabc34e09318b64c503b7287665763
parentfix type (diff)
downloadmisskey-edbe30a3df3ca4e2255f7532d26348fda942e5d3.tar.gz
misskey-edbe30a3df3ca4e2255f7532d26348fda942e5d3.tar.bz2
misskey-edbe30a3df3ca4e2255f7532d26348fda942e5d3.zip
fix tuype
-rw-r--r--packages/backend/src/core/entities/ChannelEntityService.ts1
-rw-r--r--packages/backend/src/models/json-schema/channel.ts5
-rw-r--r--packages/frontend/.storybook/fakes.ts1
-rw-r--r--packages/misskey-js/src/autogen/types.ts2
4 files changed, 9 insertions, 0 deletions
diff --git a/packages/backend/src/core/entities/ChannelEntityService.ts b/packages/backend/src/core/entities/ChannelEntityService.ts
index 9ee918bea3..e26cddd281 100644
--- a/packages/backend/src/core/entities/ChannelEntityService.ts
+++ b/packages/backend/src/core/entities/ChannelEntityService.ts
@@ -111,6 +111,7 @@ export class ChannelEntityService {
description: channel.description,
userId: channel.userId,
bannerUrl: bannerFile ? this.driveFileEntityService.getPublicUrl(bannerFile) : null,
+ bannerId: channel.bannerId,
pinnedNoteIds: channel.pinnedNoteIds,
color: channel.color,
isArchived: channel.isArchived,
diff --git a/packages/backend/src/models/json-schema/channel.ts b/packages/backend/src/models/json-schema/channel.ts
index a7966ffdb3..e7613290d1 100644
--- a/packages/backend/src/models/json-schema/channel.ts
+++ b/packages/backend/src/models/json-schema/channel.ts
@@ -40,6 +40,11 @@ export const packedChannelSchema = {
format: 'url',
nullable: true, optional: false,
},
+ bannerId: {
+ type: 'string',
+ nullable: true, optional: false,
+ format: 'id',
+ },
pinnedNoteIds: {
type: 'array',
nullable: false, optional: false,
diff --git a/packages/frontend/.storybook/fakes.ts b/packages/frontend/.storybook/fakes.ts
index ed29c63471..723255267b 100644
--- a/packages/frontend/.storybook/fakes.ts
+++ b/packages/frontend/.storybook/fakes.ts
@@ -33,6 +33,7 @@ export function channel(id = 'somechannelid', name = 'Some Channel', bannerUrl:
description: null,
userId: null,
bannerUrl,
+ bannerId: null,
pinnedNoteIds: [],
color: '#000',
isArchived: false,
diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts
index f67ad76fc9..c7c364e66b 100644
--- a/packages/misskey-js/src/autogen/types.ts
+++ b/packages/misskey-js/src/autogen/types.ts
@@ -4948,6 +4948,8 @@ export type components = {
userId: string | null;
/** Format: url */
bannerUrl: string | null;
+ /** Format: id */
+ bannerId: string | null;
pinnedNoteIds: string[];
color: string;
isArchived: boolean;