mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-05-12 00:57:32 +09:00
Fix bug
This commit is contained in:
parent
8ec978d13a
commit
c584108808
@ -10,7 +10,9 @@ const client = require('cheerio-httpcli');
|
||||
client.referer = false;
|
||||
client.timeout = 10000;
|
||||
|
||||
export default async (url: URL.Url): Promise<any> => {
|
||||
import ISummary from './isummary';
|
||||
|
||||
export default async (url: URL.Url): Promise<ISummary> => {
|
||||
const res = await client.fetch(url.href);
|
||||
|
||||
if (res.error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user