misskey/src/remote/activitypub/renderer/follow.ts
2018-04-02 13:15:53 +09:00

9 lines
239 B
TypeScript

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