summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/NoteCreateService.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-08 08:56:47 +0900
committerGitHub <noreply@github.com>2023-03-08 08:56:47 +0900
commitdd6569a1bb025f2e295c9d19d870febcde712ea1 (patch)
tree7ac4c4b1674c7aab27db9cf4b657bb2966e1e37d /packages/backend/src/core/NoteCreateService.ts
parentfeat: Per-user renote mute (#10249) (diff)
downloadsharkey-dd6569a1bb025f2e295c9d19d870febcde712ea1.tar.gz
sharkey-dd6569a1bb025f2e295c9d19d870febcde712ea1.tar.bz2
sharkey-dd6569a1bb025f2e295c9d19d870febcde712ea1.zip
feat: Reaction acceptance (#10256)
* wip * wip * デフォルト設定
Diffstat (limited to 'packages/backend/src/core/NoteCreateService.ts')
-rw-r--r--packages/backend/src/core/NoteCreateService.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/backend/src/core/NoteCreateService.ts b/packages/backend/src/core/NoteCreateService.ts
index 4c4261ba79..8d8535ca5b 100644
--- a/packages/backend/src/core/NoteCreateService.ts
+++ b/packages/backend/src/core/NoteCreateService.ts
@@ -125,6 +125,7 @@ type Option = {
files?: DriveFile[] | null;
poll?: IPoll | null;
localOnly?: boolean | null;
+ reactionAcceptance?: Note['reactionAcceptance'];
cw?: string | null;
visibility?: string;
visibleUsers?: MinimumUser[] | null;
@@ -346,6 +347,7 @@ export class NoteCreateService implements OnApplicationShutdown {
emojis,
userId: user.id,
localOnly: data.localOnly!,
+ reactionAcceptance: data.reactionAcceptance,
visibility: data.visibility as any,
visibleUserIds: data.visibility === 'specified'
? data.visibleUsers