sharkey/src/common/remote/activitypub/renderer/follow.ts
2018-04-01 23:30:57 +09:00

9 lines
247 B
TypeScript

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