blob: cf9acc9acb9a64dc5871d92ac33e039e915cfe31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import config from '../../../config';
import { ILocalUser } from '../../../models/user';
export default (object: any, user: ILocalUser) => {
const activity = {
id: `${config.url}/users/${user._id}#updates/${new Date().getTime()}`,
actor: `${config.url}/users/${user._id}`,
type: 'Update',
to: [ 'https://www.w3.org/ns/activitystreams#Public' ],
object
} as any;
return activity;
};
|