mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-25 05: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}/@${follower.username}`,
|
|
object: followee.uri
|
|
});
|