mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-18 02:01:08 +09:00
13 lines
316 B
TypeScript
13 lines
316 B
TypeScript
import config from '../../../config';
|
|
import { INote } from '../../../models/note';
|
|
|
|
export default (object: any, note: INote) => {
|
|
return {
|
|
id: `${config.url}/notes/${note._id}/activity`,
|
|
actor: `${config.url}/users/${note.userId}`,
|
|
type: 'Create',
|
|
published: note.createdAt.toISOString(),
|
|
object
|
|
};
|
|
};
|