2018-10-29 20:32:42 +09:00
|
|
|
import config from '../../../config';
|
2018-12-19 21:20:25 +09:00
|
|
|
import { ILocalUser, IRemoteUser } from '../../../models/user';
|
2018-10-29 20:32:42 +09:00
|
|
|
|
|
|
|
export default (blocker?: ILocalUser, blockee?: IRemoteUser) => ({
|
|
|
|
type: 'Block',
|
|
|
|
actor: `${config.url}/users/${blocker._id}`,
|
|
|
|
object: blockee.uri
|
|
|
|
});
|