feat: Reaction acceptance (#10256)

* wip

* wip

* デフォルト設定
This commit is contained in:
syuilo
2023-03-08 08:56:47 +09:00
committed by GitHub
parent 4c2f7c64cc
commit dd6569a1bb
17 changed files with 131 additions and 27 deletions

View File

@@ -87,6 +87,11 @@ export class Note {
})
public localOnly: boolean;
@Column('varchar', {
length: 64, nullable: true,
})
public reactionAcceptance: 'likeOnly' | 'likeOnlyForRemote' | null;
@Column('smallint', {
default: 0,
})

View File

@@ -141,6 +141,10 @@ export const packedNoteSchema = {
type: 'boolean',
optional: true, nullable: false,
},
reactionAcceptance: {
type: 'string',
optional: false, nullable: true,
},
reactions: {
type: 'object',
optional: false, nullable: false,