1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-25 12:08:16 +09:00

fix announcement api

This commit is contained in:
riku6460 2023-10-11 05:36:55 +09:00
parent df0a663283
commit 487ba201bf
No known key found for this signature in database
GPG Key ID: 27414FA27DB94CF6
2 changed files with 8 additions and 6 deletions

View File

@ -38,6 +38,10 @@ export const meta = {
optional: false, nullable: true,
format: 'date-time',
},
text: {
type: 'string',
optional: false, nullable: false,
},
isActive: {
type: 'boolean',
optional: false, nullable: false,
@ -46,10 +50,6 @@ export const meta = {
type: 'string',
optional: false, nullable: false,
},
text: {
type: 'string',
optional: false, nullable: false,
},
imageUrl: {
type: 'string',
optional: false, nullable: true,
@ -87,7 +87,7 @@ export const meta = {
optional: false, nullable: true,
ref: 'UserLite',
},
readCount: {
reads: {
type: 'number',
optional: false, nullable: false,
},
@ -130,7 +130,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
displayOrder: announcement.displayOrder,
userId: announcement.userId,
user: announcement.userInfo,
readCount: announcement.readCount,
reads: announcement.readCount,
}));
});
}

View File

@ -66,6 +66,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
icon: ps.icon,
forExistingUsers: ps.forExistingUsers,
needConfirmationToRead: ps.needConfirmationToRead,
closeDuration: ps.closeDuration,
displayOrder: ps.displayOrder,
isActive: ps.isActive,
}, me);
});