aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/accounts.ts4
-rw-r--r--server/controllers/api/users.ts5
2 files changed, 6 insertions, 3 deletions
diff --git a/server/controllers/api/accounts.ts b/server/controllers/api/accounts.ts
index 04c5897c5..85987c912 100644
--- a/server/controllers/api/accounts.ts
+++ b/server/controllers/api/accounts.ts
@@ -126,7 +126,8 @@ async function addVideoChannelRetryWrapper (req: express.Request, res: express.R
126 const videoChannel = await retryTransactionWrapper(addVideoChannel, options) 126 const videoChannel = await retryTransactionWrapper(addVideoChannel, options)
127 return res.json({ 127 return res.json({
128 videoChannel: { 128 videoChannel: {
129 id: videoChannel.id 129 id: videoChannel.id,
130 uuid: videoChannel.Actor.uuid
130 } 131 }
131 }).end() 132 }).end()
132} 133}
@@ -233,7 +234,6 @@ async function listVideoChannelVideos (req: express.Request, res: express.Respon
233 return res.json(getFormattedObjects(resultList.data, resultList.total)) 234 return res.json(getFormattedObjects(resultList.data, resultList.total))
234} 235}
235 236
236
237async function listAccountVideos (req: express.Request, res: express.Response, next: express.NextFunction) { 237async function listAccountVideos (req: express.Request, res: express.Response, next: express.NextFunction) {
238 const account: AccountModel = res.locals.account 238 const account: AccountModel = res.locals.account
239 239
diff --git a/server/controllers/api/users.ts b/server/controllers/api/users.ts
index 474329b58..dcc4ef196 100644
--- a/server/controllers/api/users.ts
+++ b/server/controllers/api/users.ts
@@ -185,7 +185,10 @@ async function createUserRetryWrapper (req: express.Request, res: express.Respon
185 return res.json({ 185 return res.json({
186 user: { 186 user: {
187 id: user.id, 187 id: user.id,
188 uuid: account.uuid 188 account: {
189 id: account.id,
190 uuid: account.Actor.uuid
191 }
189 } 192 }
190 }).end() 193 }).end()
191} 194}