1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 02:54:42 -05:00

fix my skill issue

This commit is contained in:
Ashley 2023-11-29 19:22:11 +00:00
parent b24bbd9454
commit d097ee3219

View file

@ -88,12 +88,14 @@ module.exports = function (app, config, renderTemplate) {
});
app.get("/avatars/ytc/:v", async function (req, res) {
const { fetch } = await import("undici");
var url = `https://invid-api.poketube.fun/ggpht/ytc/${req.params.v.replace(
"ytc",
""
)}`;
let f = await modules.fetch(url + `?cachefixer=${btoa(Date.now())}`, {
let f = await fetch(url + `?cachefixer=${btoa(Date.now())}`, {
method: req.method,
});