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.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remote/activitypub/renderer/document.ts b/src/remote/activitypub/renderer/document.ts
index 1f4543d7ee..17721e9417 100644
--- a/src/remote/activitypub/renderer/document.ts
+++ b/src/remote/activitypub/renderer/document.ts
@@ -1,8 +1,8 @@
-import config from '../../../config';
import { IDriveFile } from '../../../models/drive-file';
+import getDriveFileUrl from '../../../misc/get-drive-file-url';
export default (file: IDriveFile) => ({
type: 'Document',
mediaType: file.contentType,
- url: file.metadata.url || `${config.drive_url}/${file._id}`
+ url: getDriveFileUrl(file)
});