This commit is contained in:
syuilo
2020-09-18 22:18:21 +09:00
committed by GitHub
parent f104e9b6cc
commit df71dbb024
9 changed files with 36 additions and 17 deletions

View File

@ -162,9 +162,9 @@ export class UserProfile {
@Column('enum', {
enum: notificationTypes,
array: true,
nullable: true,
default: [],
})
public includingNotificationTypes: typeof notificationTypes[number][] | null;
public mutingNotificationTypes: typeof notificationTypes[number][];
//#region Denormalized fields
@Index()

View File

@ -248,7 +248,7 @@ export class UserRepository extends Repository<User> {
hasPendingReceivedFollowRequest: this.getHasPendingReceivedFollowRequest(user.id),
integrations: profile!.integrations,
mutedWords: profile!.mutedWords,
includingNotificationTypes: profile?.includingNotificationTypes,
mutingNotificationTypes: profile?.mutingNotificationTypes,
} : {}),
...(opts.includeSecrets ? {