0
0

Fix ActivityPub attachment url

This commit is contained in:
mei23 2018-08-12 04:27:32 +09:00 committed by syuilo
parent 8ccbabf5ca
commit f56ec82f6b
2 changed files with 2 additions and 2 deletions

View File

@ -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}`
});

View File

@ -3,6 +3,6 @@ import { IDriveFile } from '../../../models/drive-file';
export default (file: IDriveFile) => ({
type: 'Image',
url: `${config.drive_url}/${file._id}`,
url: file.metadata.url || `${config.drive_url}/${file._id}`,
sensitive: file.metadata.isSensitive
});