@ -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()
|
||||
|
@ -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 ? {
|
||||
|
Reference in New Issue
Block a user