1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 18:29:27 +02:00

add webtorrent opt-out settings

- add a key in localstorage to remember the opt-out
- add a user setting
This commit is contained in:
Rigel Kent 2018-10-05 15:17:34 +02:00
parent 0e5ff97f6f
commit 64cc5e8575
No known key found for this signature in database
GPG key ID: EA12971B0E438F36
13 changed files with 97 additions and 6 deletions

View file

@ -327,6 +327,7 @@ async function updateMe (req: express.Request, res: express.Response, next: expr
if (body.password !== undefined) user.password = body.password
if (body.email !== undefined) user.email = body.email
if (body.nsfwPolicy !== undefined) user.nsfwPolicy = body.nsfwPolicy
if (body.webTorrentPolicy !== undefined) user.webTorrentPolicy = body.webTorrentPolicy
if (body.autoPlayVideo !== undefined) user.autoPlayVideo = body.autoPlayVideo
await sequelizeTypescript.transaction(async t => {