fix: fetching comment count

This commit is contained in:
ThetaDev 2022-09-20 17:24:16 +02:00
parent e800e16c68
commit 8c1e7bf6ac
8 changed files with 113 additions and 46 deletions

View file

@ -253,7 +253,10 @@ impl TryFrom<TextLink> for crate::model::ChannelId {
page_type,
browse_id,
} => match page_type {
PageType::Channel => Ok(crate::model::ChannelId { id: browse_id, name: text }),
PageType::Channel => Ok(crate::model::ChannelId {
id: browse_id,
name: text,
}),
_ => Err(anyhow!("invalid channel link type")),
},
_ => Err(anyhow!("invalid channel link")),