iceshrimp/packages/backend/src/remote/activitypub/renderer/add.ts
syuilo 94228778c9 refactor: Use ESM (#8358)
* wip

* wip

* fix

* clean up

* Update tsconfig.json

* Update activitypub.ts

* wip
2022-02-27 11:07:39 +09:00

9 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,
});