diff --git a/src/components/views/utils.rs b/src/components/views/utils.rs index 172b9ba..4bf1d89 100644 --- a/src/components/views/utils.rs +++ b/src/components/views/utils.rs @@ -48,9 +48,10 @@ pub fn counts(post_view: &PostView, pad: usize) -> Vec { reposted = viewer.repost.is_some(); liked = viewer.like.is_some(); } - let (replies, reposts, likes) = ( + let (replies, reposts, quotes, likes) = ( post_view.reply_count.unwrap_or_default(), post_view.repost_count.unwrap_or_default(), + post_view.quote_count.unwrap_or_default(), post_view.like_count.unwrap_or_default(), ); let style = |b| { @@ -70,6 +71,9 @@ pub fn counts(post_view: &PostView, pad: usize) -> Vec { }), Span::from(" reposts").style(style(reposts > 0)), Span::from(", ").dim(), + Span::from(format!("{quotes:pad$}")).style(style(reposts > 0)), + Span::from(" quotes").style(style(reposts > 0)), + Span::from(", ").dim(), Span::from(format!("{likes:pad$}")).style(if liked { Style::default().red() } else {