diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-15 15:58:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-16 10:08:55 +0100 |
commit | a9bfa85d2cdf13670aaced740da5b493fbeddfce (patch) | |
tree | 3781c9218d4cc7786b6589365c0efbed2151703d /client/src/app/core/users/user.model.ts | |
parent | c77fdc605b3ccc1ab6890f889d8200fbe9372949 (diff) | |
download | PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.tar.gz PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.tar.zst PeerTube-a9bfa85d2cdf13670aaced740da5b493fbeddfce.zip |
Add ability for admins to set default p2p policy
Diffstat (limited to 'client/src/app/core/users/user.model.ts')
-rw-r--r-- | client/src/app/core/users/user.model.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/client/src/app/core/users/user.model.ts b/client/src/app/core/users/user.model.ts index c0e5d3169..f211051ce 100644 --- a/client/src/app/core/users/user.model.ts +++ b/client/src/app/core/users/user.model.ts | |||
@@ -26,7 +26,11 @@ export class User implements UserServerModel { | |||
26 | autoPlayVideo: boolean | 26 | autoPlayVideo: boolean |
27 | autoPlayNextVideo: boolean | 27 | autoPlayNextVideo: boolean |
28 | autoPlayNextVideoPlaylist: boolean | 28 | autoPlayNextVideoPlaylist: boolean |
29 | webTorrentEnabled: boolean | 29 | |
30 | p2pEnabled: boolean | ||
31 | // FIXME: deprecated in 4.1 | ||
32 | webTorrentEnabled: never | ||
33 | |||
30 | videosHistoryEnabled: boolean | 34 | videosHistoryEnabled: boolean |
31 | videoLanguages: string[] | 35 | videoLanguages: string[] |
32 | 36 | ||
@@ -84,7 +88,7 @@ export class User implements UserServerModel { | |||
84 | this.videoCommentsCount = hash.videoCommentsCount | 88 | this.videoCommentsCount = hash.videoCommentsCount |
85 | 89 | ||
86 | this.nsfwPolicy = hash.nsfwPolicy | 90 | this.nsfwPolicy = hash.nsfwPolicy |
87 | this.webTorrentEnabled = hash.webTorrentEnabled | 91 | this.p2pEnabled = hash.p2pEnabled |
88 | this.autoPlayVideo = hash.autoPlayVideo | 92 | this.autoPlayVideo = hash.autoPlayVideo |
89 | this.autoPlayNextVideo = hash.autoPlayNextVideo | 93 | this.autoPlayNextVideo = hash.autoPlayNextVideo |
90 | this.autoPlayNextVideoPlaylist = hash.autoPlayNextVideoPlaylist | 94 | this.autoPlayNextVideoPlaylist = hash.autoPlayNextVideoPlaylist |