Allowing for -mobile gfycat links, simplified URL patterns

This commit is contained in:
2024-09-11 05:16:56 +02:00
parent 91550406fe
commit 0377053d5a
3 changed files with 4 additions and 11 deletions

View File

@@ -3,6 +3,8 @@
const fetch = require('node-fetch');
async function imgurImage(post) {
console.log(post.host);
const res = await fetch(`https://imgur.com/${post.host.id}`);
const html = await res.text();