fix: handle navigation endpoints for shorts (reelWatchEndpoint)

This commit is contained in:
ThetaDev 2023-08-04 16:15:04 +02:00
parent 43ef8d15c4
commit d78fa371e9

View file

@ -15,7 +15,10 @@ pub(crate) struct ResolvedUrl {
#[serde(untagged)]
pub(crate) enum NavigationEndpoint {
#[serde(rename_all = "camelCase")]
Watch { watch_endpoint: WatchEndpoint },
Watch {
#[serde(alias = "reelWatchEndpoint")]
watch_endpoint: WatchEndpoint,
},
#[serde(rename_all = "camelCase")]
Browse {
browse_endpoint: BrowseEndpoint,