From 7413634734d31b4558a5fbaed01d8d2a88c20742 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 18 Oct 2021 01:16:59 +0900 Subject: リアクション一覧の公開をオプトインに MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/entities/user-profile.ts | 5 +++++ src/models/repositories/user.ts | 1 + 2 files changed, 6 insertions(+) (limited to 'src/models') 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 { }), pinnedPageId: profile!.pinnedPageId, pinnedPage: profile!.pinnedPageId ? Pages.pack(profile!.pinnedPageId, me) : null, + publicReactions: profile!.publicReactions, twoFactorEnabled: profile!.twoFactorEnabled, usePasswordLessLogin: profile!.usePasswordLessLogin, securityKeys: profile!.twoFactorEnabled -- cgit v1.2.3-freya