mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 20:53:08 +02:00
Add 'localOnly' to packedNoteSchema Related: #7174 Add 'emojis' to packedNoteSchema Add 'reactions' to packedNoteSchema Related: #7174 Add 'renoteCount' to packedNoteSchema Related: #7174 Add 'repliesCount' to packedNoteSchema Add 'uri' to packedNoteSchema Add 'url' to packedNoteSchema Add: _featuredId_ to packedNoteSchema Add '_prId_' to packedNoteSchema Add 'myReaction' to packedNoteSchema
This commit is contained in:
parent
225ec6f5ed
commit
6477ad2cfc
1 changed files with 58 additions and 0 deletions
|
@ -412,5 +412,63 @@ export const packedNoteSchema = {
|
||||||
optional: true as const, nullable: true as const,
|
optional: true as const, nullable: true as const,
|
||||||
ref: 'Channel'
|
ref: 'Channel'
|
||||||
},
|
},
|
||||||
|
localOnly: {
|
||||||
|
type: 'boolean' as const,
|
||||||
|
optional: false as const, nullable: true as const,
|
||||||
|
},
|
||||||
|
emojis: {
|
||||||
|
type: 'array' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
items: {
|
||||||
|
type: 'object' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
properties: {
|
||||||
|
name: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
},
|
||||||
|
url: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
reactions: {
|
||||||
|
type: 'object' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
description: 'Key is either Unicode emoji or custom emoji, value is count of that emoji reaction.',
|
||||||
|
},
|
||||||
|
renoteCount: {
|
||||||
|
type: 'number' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
},
|
||||||
|
repliesCount: {
|
||||||
|
type: 'number' as const,
|
||||||
|
optional: false as const, nullable: false as const,
|
||||||
|
},
|
||||||
|
uri: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: true as const,
|
||||||
|
description: 'The URI of a note. it will be null when the note is local.',
|
||||||
|
},
|
||||||
|
url: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: true as const,
|
||||||
|
description: 'The human readable url of a note. it will be null when the note is local.',
|
||||||
|
},
|
||||||
|
_featuredId_: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: true as const,
|
||||||
|
},
|
||||||
|
_prId_: {
|
||||||
|
type: 'string' as const,
|
||||||
|
optional: false as const, nullable: true as const,
|
||||||
|
},
|
||||||
|
myReaction: {
|
||||||
|
type: 'object' as const,
|
||||||
|
optional: true as const, nullable: true as const,
|
||||||
|
description: 'Key is either Unicode emoji or custom emoji, value is count of that emoji reaction.',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue