mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-24 03:28:27 +09:00
d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
24 lines
590 B
TypeScript
24 lines
590 B
TypeScript
import define from '../../define.js';
|
|
import { getRemoteUser } from '../../common/getters.js';
|
|
import { updatePerson } from '@/remote/activitypub/models/person.js';
|
|
|
|
export const meta = {
|
|
tags: ['federation'],
|
|
|
|
requireCredential: true,
|
|
} as const;
|
|
|
|
export const paramDef = {
|
|
type: 'object',
|
|
properties: {
|
|
userId: { type: 'string', format: 'misskey:id' },
|
|
},
|
|
required: ['userId'],
|
|
} as const;
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default define(meta, paramDef, async (ps) => {
|
|
const user = await getRemoteUser(ps.userId);
|
|
await updatePerson(user.uri!);
|
|
});
|