mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 02:15:11 +01:00
14 lines
397 B
TypeScript
14 lines
397 B
TypeScript
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;
|
|
};
|