d071d18dd7
* wip * wip * fix * clean up * Update tsconfig.json * Update activitypub.ts * wip
9 lines
262 B
TypeScript
9 lines
262 B
TypeScript
import config from '@/config/index.js';
|
|
import { ILocalUser, IRemoteUser } from '@/models/entities/user.js';
|
|
|
|
export default (blocker: ILocalUser, blockee: IRemoteUser) => ({
|
|
type: 'Block',
|
|
actor: `${config.url}/users/${blocker.id}`,
|
|
object: blockee.uri,
|
|
});
|