mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-05 05:26:03 +02:00
wip
This commit is contained in:
@@ -5,7 +5,7 @@ import rndstr from 'rndstr';
|
||||
import $ from 'cafy';
|
||||
import App from '../../models/app';
|
||||
import { isValidNameId } from '../../models/app';
|
||||
import serialize from '../../serializers/app';
|
||||
import { pack } from '../../models/app';
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
@@ -106,5 +106,5 @@ module.exports = async (params, user) => new Promise(async (res, rej) => {
|
||||
});
|
||||
|
||||
// Response
|
||||
res(await serialize(app));
|
||||
res(await pack(app));
|
||||
});
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import $ from 'cafy';
|
||||
import App from '../../models/app';
|
||||
import serialize from '../../serializers/app';
|
||||
import { pack } from '../../models/app';
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
@@ -67,7 +67,7 @@ module.exports = (params, user, _, isSecure) => new Promise(async (res, rej) =>
|
||||
}
|
||||
|
||||
// Send response
|
||||
res(await serialize(app, user, {
|
||||
res(await pack(app, user, {
|
||||
includeSecret: isSecure && app.user_id.equals(user._id)
|
||||
}));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user