Sharkey/src/remote/activitypub/renderer/accept.ts

9 lines
215 B
TypeScript
Raw Normal View History

import config from '../../../config';
import { ILocalUser } from '../../../models/user';
export default (object: any, user: ILocalUser) => ({
2018-04-03 05:07:29 +02:00
type: 'Accept',
actor: `${config.url}/users/${user._id}`,
2018-04-03 05:07:29 +02:00
object
});