mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 11:18:28 +00:00
instagram: add missing awaits to getMediaId calls
This commit is contained in:
parent
6367ac90f5
commit
3ace1a59a2
@ -243,9 +243,9 @@ async function getPost(id) {
|
|||||||
const token = bearer?.values()?.token;
|
const token = bearer?.values()?.token;
|
||||||
|
|
||||||
// get media_id for mobile api, three methods
|
// get media_id for mobile api, three methods
|
||||||
let media_id = getMediaId(id);
|
let media_id = await getMediaId(id);
|
||||||
if (!media_id && token) media_id = getMediaId(id, { token });
|
if (!media_id && token) media_id = await getMediaId(id, { token });
|
||||||
if (!media_id && cookie) media_id = getMediaId(id, { cookie });
|
if (!media_id && cookie) media_id = await getMediaId(id, { cookie });
|
||||||
|
|
||||||
// mobile api (bearer)
|
// mobile api (bearer)
|
||||||
if (media_id && token) data = await requestMobileApi(id, { token });
|
if (media_id && token) data = await requestMobileApi(id, { token });
|
||||||
|
Loading…
Reference in New Issue
Block a user