diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2019-12-11 20:20:42 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-12-13 09:13:43 +0100 |
commit | bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf (patch) | |
tree | 9e9f6d509ed24f799f82667109498b9561474a4d /server/models/account/user.ts | |
parent | d816f3a063febac1cad09ab3a32e5f0d29353627 (diff) | |
download | PeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.tar.gz PeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.tar.zst PeerTube-bee29df8a9ba3090be3daa8ff806dd9a26d7a5cf.zip |
autoplay next video support for playlists
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, |