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