WIP(ApImageService.ts): image.urlgetApHrefNullable()に通すかどうか悩んでいる

This commit is contained in:
okayurisotto 2023-07-02 13:30:12 +09:00
parent 9dc2e98ef8
commit aeefb843a8

View file

@ -50,6 +50,8 @@ export class ApImageService {
throw new Error('invalid image: url not privided');
}
// TODO?
// const url = getOneApHrefNullable(image.url);
if (typeof image.url !== 'string') {
throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url));
}