aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models
diff options
context:
space:
mode:
authorLoveIsGrief <LoveIsGrief@users.noreply.github.com>2019-09-24 08:48:01 +0200
committerChocobozzz <me@florianbigard.com>2019-09-24 08:48:01 +0200
commit6aa541481390980f9c85d2e66514ba0e6ce77a35 (patch)
tree7b2e934647a732645c69e5d05e4b18152b50a6b8 /shared/models
parent32d7f2b754b8d20bf44ae2121c79570cbff973c3 (diff)
downloadPeerTube-6aa541481390980f9c85d2e66514ba0e6ce77a35.tar.gz
PeerTube-6aa541481390980f9c85d2e66514ba0e6ce77a35.tar.zst
PeerTube-6aa541481390980f9c85d2e66514ba0e6ce77a35.zip
Autoplay next recommended video (#2137)
* Start working on autoplay of next video * Ignore changes made by gitpod * Apply changes from PR#1370 * Correct the spelling of recommendations * Fix linting errors * Move boolean check to existing onEnded handler * Pick a random video until the recommendations are improved * Add simple tests for autoPlayNextVideo * Fix lint ...again
Diffstat (limited to 'shared/models')
-rw-r--r--shared/models/users/user-update-me.model.ts1
-rw-r--r--shared/models/users/user.model.ts1
2 files changed, 2 insertions, 0 deletions
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts
index 99b9a65bd..0a833f84c 100644
--- a/shared/models/users/user-update-me.model.ts
+++ b/shared/models/users/user-update-me.model.ts
@@ -7,6 +7,7 @@ export interface UserUpdateMe {
7 7
8 webTorrentEnabled?: boolean 8 webTorrentEnabled?: boolean
9 autoPlayVideo?: boolean 9 autoPlayVideo?: boolean
10 autoPlayNextVideo?: boolean
10 videosHistoryEnabled?: boolean 11 videosHistoryEnabled?: boolean
11 videoLanguages?: string[] 12 videoLanguages?: string[]
12 13
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts
index f67d262b0..1ca8ddcba 100644
--- a/shared/models/users/user.model.ts
+++ b/shared/models/users/user.model.ts
@@ -17,6 +17,7 @@ export interface User {
17 adminFlags?: UserAdminFlag 17 adminFlags?: UserAdminFlag
18 18
19 autoPlayVideo: boolean 19 autoPlayVideo: boolean
20 autoPlayNextVideo: boolean
20 webTorrentEnabled: boolean 21 webTorrentEnabled: boolean
21 videosHistoryEnabled: boolean 22 videosHistoryEnabled: boolean
22 videoLanguages: string[] 23 videoLanguages: string[]