diff options
Diffstat (limited to 'src/remote/activitypub/renderer/create.ts')
| -rw-r--r-- | src/remote/activitypub/renderer/create.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/remote/activitypub/renderer/create.ts b/src/remote/activitypub/renderer/create.ts deleted file mode 100644 index 04aa993a91..0000000000 --- a/src/remote/activitypub/renderer/create.ts +++ /dev/null @@ -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; -}; |