summaryrefslogtreecommitdiff
path: root/src/common/remote/activitypub/renderer/document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/remote/activitypub/renderer/document.ts')
-rw-r--r--src/common/remote/activitypub/renderer/document.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/remote/activitypub/renderer/document.ts b/src/common/remote/activitypub/renderer/document.ts
new file mode 100644
index 0000000000..4a456416a9
--- /dev/null
+++ b/src/common/remote/activitypub/renderer/document.ts
@@ -0,0 +1,7 @@
+import config from '../../../../conf';
+
+export default ({ _id, contentType }) => ({
+ type: 'Document',
+ mediaType: contentType,
+ url: `${config.drive_url}/${_id}`
+});