improve docs
ci/woodpecker/push/lint-backend Pipeline was successful Details
ci/woodpecker/push/lint-foundkey-js Pipeline was successful Details
ci/woodpecker/push/lint-client Pipeline was successful Details
ci/woodpecker/push/build Pipeline was successful Details
ci/woodpecker/push/lint-sw Pipeline was successful Details
ci/woodpecker/push/test Pipeline was successful Details

This commit is contained in:
Johann150 2023-03-03 23:36:15 +01:00
parent a750c7ad57
commit ee2860e894
Signed by: Johann150
GPG Key ID: 9EE6577A2A06F8F1
2 changed files with 5 additions and 1 deletions

View File

@ -87,11 +87,13 @@ export const packedUserDetailedNotMeOnlySchema = {
type: 'object',
properties: {
url: {
description: 'URL to a presentation form intended for humans, if available',
type: 'string',
format: 'url',
nullable: true, optional: false,
},
uri: {
description: 'ActivityPub `id` of this User',
type: 'string',
format: 'uri',
nullable: true, optional: false,

View File

@ -6,6 +6,8 @@ export const meta = {
requireCredential: true,
description: 'Show the representation of the authenticated user.',
res: {
type: 'object',
optional: false, nullable: false,
@ -23,7 +25,7 @@ export const paramDef = {
export default define(meta, paramDef, async (ps, user, token) => {
const isSecure = token == null;
// ここで渡ってきている user はキャッシュされていて古い可能性もあるので id だけ渡す
// The user passed here may be cached and out of date, so only the id is passed.
return await Users.pack<true, true>(user.id, user, {
detail: true,
includeSecrets: isSecure,