Query Post metadata through api/graphql when not logged in

This commit is contained in:
Alexander Graf
2026-10-23 23:40:31 +02:00
parent 133e5c442c
commit 653efed311
+2
View File
@@ -415,6 +415,8 @@ class Post:
"shortcode": self.shortcode,
"__relay_internal__pv__PolarisAIGMMediaWebLabelEnabledrelayprovider": False,
},
# As the logged-out web app does.
web_api=not self._context.is_logged_in,
)
web_info = (resp.get("data") or {}).get("xdt_api__v1__media__shortcode__web_info") or {}
items = web_info.get("items")