mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 15:23:09 +02:00
d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
23 lines
590 B
TypeScript
23 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!);
|
|
});
|