mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user