enhance(server): clean emoji response

This commit is contained in:
syuilo
2022-12-31 08:43:13 +09:00
parent fcfcb8da1d
commit b2d6561bc6
11 changed files with 9 additions and 186 deletions

View File

@ -141,24 +141,6 @@ export const packedNoteSchema = {
type: 'boolean',
optional: true, nullable: false,
},
emojis: {
type: 'array',
optional: false, nullable: false,
items: {
type: 'object',
optional: false, nullable: false,
properties: {
name: {
type: 'string',
optional: false, nullable: false,
},
url: {
type: 'string',
optional: false, nullable: true,
},
},
},
},
reactions: {
type: 'object',
optional: false, nullable: false,

View File

@ -55,25 +55,6 @@ export const packedUserLiteSchema = {
type: 'boolean',
nullable: false, optional: true,
},
emojis: {
type: 'array',
nullable: false, optional: false,
items: {
type: 'object',
nullable: false, optional: false,
properties: {
name: {
type: 'string',
nullable: false, optional: false,
},
url: {
type: 'string',
nullable: false, optional: false,
format: 'url',
},
},
},
},
onlineStatus: {
type: 'string',
format: 'url',