aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-26 10:03:40 +0200
committerChocobozzz <me@florianbigard.com>2018-04-26 10:03:40 +0200
commited56ad1193bb5bb0a81fb843a11eb90d3fed9861 (patch)
tree64842447b4721978c69e1d2b3a964951c789c408 /server/controllers/api
parentd62cf3234ccfca0223a9639782635f0fb6594f8c (diff)
downloadPeerTube-ed56ad1193bb5bb0a81fb843a11eb90d3fed9861.tar.gz
PeerTube-ed56ad1193bb5bb0a81fb843a11eb90d3fed9861.tar.zst
PeerTube-ed56ad1193bb5bb0a81fb843a11eb90d3fed9861.zip
Add ability to update the user display name/description
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/users.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts
index dcc4ef196..2342c23dd 100644
--- a/server/controllers/api/users.ts
+++ b/server/controllers/api/users.ts
@@ -303,6 +303,7 @@ async function updateMe (req: express.Request, res: express.Response, next: expr
303 await sequelizeTypescript.transaction(async t => { 303 await sequelizeTypescript.transaction(async t => {
304 await user.save({ transaction: t }) 304 await user.save({ transaction: t })
305 305
306 if (body.displayName !== undefined) user.Account.name = body.displayName
306 if (body.description !== undefined) user.Account.description = body.description 307 if (body.description !== undefined) user.Account.description = body.description
307 await user.Account.save({ transaction: t }) 308 await user.Account.save({ transaction: t })
308 309