diff options
Diffstat (limited to 'server/models/account/user-notification-setting.ts')
-rw-r--r-- | server/models/account/user-notification-setting.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/server/models/account/user-notification-setting.ts b/server/models/account/user-notification-setting.ts index ba7f739b9..c2fbc6d23 100644 --- a/server/models/account/user-notification-setting.ts +++ b/server/models/account/user-notification-setting.ts | |||
@@ -104,6 +104,15 @@ export class UserNotificationSettingModel extends Model<UserNotificationSettingM | |||
104 | @AllowNull(false) | 104 | @AllowNull(false) |
105 | @Default(null) | 105 | @Default(null) |
106 | @Is( | 106 | @Is( |
107 | 'UserNotificationSettingNewInstanceFollower', | ||
108 | value => throwIfNotValid(value, isUserNotificationSettingValid, 'newInstanceFollower') | ||
109 | ) | ||
110 | @Column | ||
111 | newInstanceFollower: UserNotificationSettingValue | ||
112 | |||
113 | @AllowNull(false) | ||
114 | @Default(null) | ||
115 | @Is( | ||
107 | 'UserNotificationSettingNewFollow', | 116 | 'UserNotificationSettingNewFollow', |
108 | value => throwIfNotValid(value, isUserNotificationSettingValid, 'newFollow') | 117 | value => throwIfNotValid(value, isUserNotificationSettingValid, 'newFollow') |
109 | ) | 118 | ) |
@@ -154,7 +163,8 @@ export class UserNotificationSettingModel extends Model<UserNotificationSettingM | |||
154 | myVideoImportFinished: this.myVideoImportFinished, | 163 | myVideoImportFinished: this.myVideoImportFinished, |
155 | newUserRegistration: this.newUserRegistration, | 164 | newUserRegistration: this.newUserRegistration, |
156 | commentMention: this.commentMention, | 165 | commentMention: this.commentMention, |
157 | newFollow: this.newFollow | 166 | newFollow: this.newFollow, |
167 | newInstanceFollower: this.newInstanceFollower | ||
158 | } | 168 | } |
159 | } | 169 | } |
160 | } | 170 | } |