summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-10-18 01:16:59 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-10-18 01:16:59 +0900
commit7413634734d31b4558a5fbaed01d8d2a88c20742 (patch)
tree345704fbc2d4bbf45631901dfa4d6b58dd6067a3 /src/models
parent:art: (diff)
downloadsharkey-7413634734d31b4558a5fbaed01d8d2a88c20742.tar.gz
sharkey-7413634734d31b4558a5fbaed01d8d2a88c20742.tar.bz2
sharkey-7413634734d31b4558a5fbaed01d8d2a88c20742.zip
リアクション一覧の公開をオプトインに
Diffstat (limited to 'src/models')
-rw-r--r--src/models/entities/user-profile.ts5
-rw-r--r--src/models/repositories/user.ts1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/models/entities/user-profile.ts b/src/models/entities/user-profile.ts
index a2da07d76f..1f450f223d 100644
--- a/src/models/entities/user-profile.ts
+++ b/src/models/entities/user-profile.ts
@@ -75,6 +75,11 @@ export class UserProfile {
})
public emailNotificationTypes: string[];
+ @Column('boolean', {
+ default: false,
+ })
+ public publicReactions: boolean;
+
@Column('varchar', {
length: 128, nullable: true,
})
diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts
index b6f27e32e2..2b77b613a8 100644
--- a/src/models/repositories/user.ts
+++ b/src/models/repositories/user.ts
@@ -231,6 +231,7 @@ export class UserRepository extends Repository<User> {
}),
pinnedPageId: profile!.pinnedPageId,
pinnedPage: profile!.pinnedPageId ? Pages.pack(profile!.pinnedPageId, me) : null,
+ publicReactions: profile!.publicReactions,
twoFactorEnabled: profile!.twoFactorEnabled,
usePasswordLessLogin: profile!.usePasswordLessLogin,
securityKeys: profile!.twoFactorEnabled