parent
037837b551
commit
0e4a111f81
1714 changed files with 20803 additions and 11751 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import config from '@/config/index';
|
||||
import { Note } from '@/models/entities/note';
|
||||
|
||||
export default (object: any, note: Note) => {
|
||||
const activity = {
|
||||
id: `${config.url}/notes/${note.id}/activity`,
|
||||
actor: `${config.url}/users/${note.userId}`,
|
||||
type: 'Create',
|
||||
published: note.createdAt.toISOString(),
|
||||
object
|
||||
} as any;
|
||||
|
||||
if (object.to) activity.to = object.to;
|
||||
if (object.cc) activity.cc = object.cc;
|
||||
|
||||
return activity;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue