mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-11 08:37:19 +09:00
Fix bug
This commit is contained in:
parent
97fd66f546
commit
fd0a55cd84
@ -1,3 +1,7 @@
|
|||||||
|
2.0.2 / Unreleased
|
||||||
|
------------------
|
||||||
|
* Bug fix
|
||||||
|
|
||||||
2.0.1 / 2017-03-11
|
2.0.1 / 2017-03-11
|
||||||
------------------
|
------------------
|
||||||
* Update some dependencies
|
* Update some dependencies
|
||||||
|
@ -64,6 +64,10 @@ export default async (url: string, options?: Options): Promise<Result> => {
|
|||||||
// Get summary
|
// Get summary
|
||||||
const summary = await (match ? match.summarize : general)(_url);
|
const summary = await (match ? match.summarize : general)(_url);
|
||||||
|
|
||||||
|
if (summary == null) {
|
||||||
|
throw 'failed summarize';
|
||||||
|
}
|
||||||
|
|
||||||
return Object.assign(summary, {
|
return Object.assign(summary, {
|
||||||
url: actualUrl
|
url: actualUrl
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user