mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-02 09:26:44 -06:00
9855405b89
* wip * wip * wip * wip * wip * wip * wip * wip * wop * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * add notes * wip * wip * wip * wip * sound * wip * add kick_gaba2 * wip
29 lines
540 B
TypeScript
29 lines
540 B
TypeScript
import define from '../define';
|
|
import { Users } from '../../../models';
|
|
|
|
export const meta = {
|
|
desc: {
|
|
'ja-JP': '自分のアカウント情報を取得します。'
|
|
},
|
|
|
|
tags: ['account'],
|
|
|
|
requireCredential: true as const,
|
|
|
|
params: {},
|
|
|
|
res: {
|
|
type: 'object' as const,
|
|
optional: false as const, nullable: false as const,
|
|
ref: 'User',
|
|
},
|
|
};
|
|
|
|
export default define(meta, async (ps, user, token) => {
|
|
const isSecure = token == null;
|
|
|
|
return await Users.pack(user, user, {
|
|
detail: true,
|
|
includeSecrets: isSecure
|
|
});
|
|
});
|