mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-11 01:00:07 +09:00
WIP(ApImageService.ts
): image.url
をgetApHrefNullable()
に通すかどうか悩んでいる
This commit is contained in:
parent
9dc2e98ef8
commit
aeefb843a8
@ -50,6 +50,8 @@ export class ApImageService {
|
|||||||
throw new Error('invalid image: url not privided');
|
throw new Error('invalid image: url not privided');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO?
|
||||||
|
// const url = getOneApHrefNullable(image.url);
|
||||||
if (typeof image.url !== 'string') {
|
if (typeof image.url !== 'string') {
|
||||||
throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url));
|
throw new Error('invalid image: unexpected type of url: ' + JSON.stringify(image.url));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user