instagram: remove async tag from non async functions

This commit is contained in:
wukko 2024-04-20 20:47:33 +06:00
parent 2561cf168e
commit 018557cbcd
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -116,7 +116,7 @@ async function requestGQL(id, cookie) {
?.[0]; ?.[0];
} }
async function extractOldPost(data, id) { function extractOldPost(data, id) {
const sidecar = data?.gql_data?.shortcode_media?.edge_sidecar_to_children; const sidecar = data?.gql_data?.shortcode_media?.edge_sidecar_to_children;
if (sidecar) { if (sidecar) {
const picker = sidecar.edges.filter(e => e.node?.display_url) const picker = sidecar.edges.filter(e => e.node?.display_url)
@ -152,7 +152,7 @@ async function extractOldPost(data, id) {
} }
} }
async function extractNewPost(data, id) { function extractNewPost(data, id) {
const carousel = data.carousel_media; const carousel = data.carousel_media;
if (carousel) { if (carousel) {
const picker = carousel.filter(e => e?.image_versions2) const picker = carousel.filter(e => e?.image_versions2)