rudeshark.net/src/common/remote/activitypub/renderer/follow.ts

9 lines
247 B
TypeScript
Raw Normal View History

2018-04-01 12:43:26 +02:00
import config from '../../../../conf';
import { IRemoteAccount } from '../../../../models/user';
export default ({ username }, { account }) => ({
type: 'Follow',
actor: `${config.url}/@${username}`,
object: (account as IRemoteAccount).uri
});