mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +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:
parent
0e5ff97f6f
commit
64cc5e8575
13 changed files with 97 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue