mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-09 23:57:20 +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
|
||||
------------------
|
||||
* Update some dependencies
|
||||
|
@ -64,6 +64,10 @@ export default async (url: string, options?: Options): Promise<Result> => {
|
||||
// Get summary
|
||||
const summary = await (match ? match.summarize : general)(_url);
|
||||
|
||||
if (summary == null) {
|
||||
throw 'failed summarize';
|
||||
}
|
||||
|
||||
return Object.assign(summary, {
|
||||
url: actualUrl
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user