mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-22 16:17:52 +01:00
fix my skill issue
This commit is contained in:
parent
b24bbd9454
commit
d097ee3219
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue