diff options
Diffstat (limited to 'server/models/user/user.ts')
-rw-r--r-- | server/models/user/user.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/models/user/user.ts b/server/models/user/user.ts index 735b5c171..4f6a8fce4 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts | |||
@@ -404,6 +404,11 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
404 | @Column | 404 | @Column |
405 | lastLoginDate: Date | 405 | lastLoginDate: Date |
406 | 406 | ||
407 | @AllowNull(false) | ||
408 | @Default(false) | ||
409 | @Column | ||
410 | emailPublic: boolean | ||
411 | |||
407 | @AllowNull(true) | 412 | @AllowNull(true) |
408 | @Default(null) | 413 | @Default(null) |
409 | @Column | 414 | @Column |
@@ -880,6 +885,7 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> { | |||
880 | theme: getThemeOrDefault(this.theme, DEFAULT_USER_THEME_NAME), | 885 | theme: getThemeOrDefault(this.theme, DEFAULT_USER_THEME_NAME), |
881 | 886 | ||
882 | pendingEmail: this.pendingEmail, | 887 | pendingEmail: this.pendingEmail, |
888 | emailPublic: this.emailPublic, | ||
883 | emailVerified: this.emailVerified, | 889 | emailVerified: this.emailVerified, |
884 | 890 | ||
885 | nsfwPolicy: this.nsfwPolicy, | 891 | nsfwPolicy: this.nsfwPolicy, |