sharkey/src/remote/activitypub/renderer/follow.ts
2018-04-08 15:15:22 +09:00

9 lines
260 B
TypeScript

import config from '../../../config';
import { IRemoteUser, ILocalUser } from '../../../models/user';
export default (follower: ILocalUser, followee: IRemoteUser) => ({
type: 'Follow',
actor: `${config.url}/users/${follower._id}`,
object: followee.uri
});