d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
10 lines
241 B
TypeScript
10 lines
241 B
TypeScript
import config from '@/config/index.js';
|
|
import { ILocalUser } from '@/models/entities/user.js';
|
|
|
|
export default (user: ILocalUser, target: any, object: any) => ({
|
|
type: 'Add',
|
|
actor: `${config.url}/users/${user.id}`,
|
|
target,
|
|
object,
|
|
});
|