mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
Fix ActivityPub attachment url
This commit is contained in:
parent
d4fdddd277
commit
e91174615c
2 changed files with 2 additions and 2 deletions
|
@ -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}`
|
||||
});
|
||||
|
|
|
@ -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
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue