summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/renderer/document.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/renderer/document.ts')
-rw-r--r--src/remote/activitypub/renderer/document.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/remote/activitypub/renderer/document.ts b/src/remote/activitypub/renderer/document.ts
index 91a9f7df38..1985c6bc8b 100644
--- a/src/remote/activitypub/renderer/document.ts
+++ b/src/remote/activitypub/renderer/document.ts
@@ -1,7 +1,8 @@
import config from '../../../config';
+import { IDriveFile } from '../../../models/drive-file';
-export default ({ _id, contentType }) => ({
+export default (file: IDriveFile) => ({
type: 'Document',
- mediaType: contentType,
- url: `${config.drive_url}/${_id}`
+ mediaType: file.contentType,
+ url: `${config.drive_url}/${file._id}`
});