mirror of
https://github.com/misskey-dev/summerflare.git
synced 2025-04-29 02:37:17 +09:00
fix: the url
field is missing
This commit is contained in:
parent
59d47aab0a
commit
2b2fe28b04
@ -25,6 +25,7 @@ app.get("/url", async (context) => {
|
||||
return context.json({ error: "Invalid URL" }, 400);
|
||||
}
|
||||
const response = await fetch(url);
|
||||
url = new URL(response.url);
|
||||
const rewriter = new HTMLRewriter();
|
||||
const summarized = summary(url, rewriter);
|
||||
const reader = rewriter.transform(response).body!.getReader();
|
||||
|
@ -66,6 +66,7 @@ export default function general(url: URL, html: HTMLRewriter) {
|
||||
sitename: siteName,
|
||||
icon: favicon,
|
||||
sensitive,
|
||||
url: url.href,
|
||||
};
|
||||
}
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user