mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-17 06:59:01 +01:00
8 lines
260 B
TypeScript
8 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
|
|
});
|