mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 23:23:09 +02: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
|
|
});
|