monkeeShark/src/remote/activitypub/renderer/image.ts

8 lines
203 B
TypeScript
Raw Normal View History

2018-04-02 04:15:53 +00:00
import config from '../../../config';
2018-06-18 05:28:43 +00:00
import { IDriveFile } from '../../../models/drive-file';
2018-04-01 10:18:36 +00:00
2018-06-18 05:28:43 +00:00
export default (fileId: IDriveFile['_id']) => ({
2018-04-01 10:18:36 +00:00
type: 'Image',
2018-06-18 05:28:43 +00:00
url: `${config.drive_url}/${fileId}`
2018-04-01 10:18:36 +00:00
});