15 lines
397 B
TypeScript
15 lines
397 B
TypeScript
import config from '@/config';
|
|
import { ILocalUser } from '../../../models/entities/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;
|
|
};
|