1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-18 08:38:52 +09:00
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
});