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

Add ability to update the user display name/description

This commit is contained in:
Chocobozzz 2018-04-26 10:03:40 +02:00
parent d62cf3234c
commit ed56ad1193
No known key found for this signature in database
GPG key ID: 583A612D890159BE
23 changed files with 215 additions and 19 deletions

View file

@ -303,6 +303,7 @@ async function updateMe (req: express.Request, res: express.Response, next: expr
await sequelizeTypescript.transaction(async t => {
await user.save({ transaction: t })
if (body.displayName !== undefined) user.Account.name = body.displayName
if (body.description !== undefined) user.Account.description = body.description
await user.Account.save({ transaction: t })