summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/create.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/renderer/create.ts')
-rw-r--r--src/remote/activitypub/renderer/create.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/create.ts b/src/remote/activitypub/renderer/create.ts
index 1ee1418fce..e1fc0515c8 100644
--- a/src/remote/activitypub/renderer/create.ts
+++ b/src/remote/activitypub/renderer/create.ts
@@ -1,9 +1,9 @@
import config from '../../../config';
-import { INote } from '../../../models/note';
+import { Note } from '../../../models/entities/note';
-export default (object: any, note: INote) => {
+export default (object: any, note: Note) => {
const activity = {
- id: `${config.url}/notes/${note._id}/activity`,
+ id: `${config.url}/notes/${note.id}/activity`,
actor: `${config.url}/users/${note.userId}`,
type: 'Create',
published: note.createdAt.toISOString(),