diff options
Diffstat (limited to 'server/models/account/user.ts')
-rw-r--r-- | server/models/account/user.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 522ea3310..b2cd25bc3 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts | |||
@@ -26,6 +26,7 @@ import { | |||
26 | isUserAdminFlagsValid, | 26 | isUserAdminFlagsValid, |
27 | isUserAutoPlayVideoValid, | 27 | isUserAutoPlayVideoValid, |
28 | isUserAutoPlayNextVideoValid, | 28 | isUserAutoPlayNextVideoValid, |
29 | isUserAutoPlayNextVideoPlaylistValid, | ||
29 | isUserBlockedReasonValid, | 30 | isUserBlockedReasonValid, |
30 | isUserBlockedValid, | 31 | isUserBlockedValid, |
31 | isUserEmailVerifiedValid, | 32 | isUserEmailVerifiedValid, |
@@ -167,6 +168,12 @@ export class UserModel extends Model<UserModel> { | |||
167 | @Column | 168 | @Column |
168 | autoPlayNextVideo: boolean | 169 | autoPlayNextVideo: boolean |
169 | 170 | ||
171 | @AllowNull(false) | ||
172 | @Default(true) | ||
173 | @Is('UserAutoPlayNextVideoPlaylist', value => throwIfNotValid(value, isUserAutoPlayNextVideoPlaylistValid, 'auto play next video for playlists boolean')) | ||
174 | @Column | ||
175 | autoPlayNextVideoPlaylist: boolean | ||
176 | |||
170 | @AllowNull(true) | 177 | @AllowNull(true) |
171 | @Default(null) | 178 | @Default(null) |
172 | @Is('UserVideoLanguages', value => throwIfNotValid(value, isUserVideoLanguages, 'video languages')) | 179 | @Is('UserVideoLanguages', value => throwIfNotValid(value, isUserVideoLanguages, 'video languages')) |
@@ -619,6 +626,7 @@ export class UserModel extends Model<UserModel> { | |||
619 | videosHistoryEnabled: this.videosHistoryEnabled, | 626 | videosHistoryEnabled: this.videosHistoryEnabled, |
620 | autoPlayVideo: this.autoPlayVideo, | 627 | autoPlayVideo: this.autoPlayVideo, |
621 | autoPlayNextVideo: this.autoPlayNextVideo, | 628 | autoPlayNextVideo: this.autoPlayNextVideo, |
629 | autoPlayNextVideoPlaylist: this.autoPlayNextVideoPlaylist, | ||
622 | videoLanguages: this.videoLanguages, | 630 | videoLanguages: this.videoLanguages, |
623 | 631 | ||
624 | role: this.role, | 632 | role: this.role, |