mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Show replies count for ancestors
This commit is contained in:
parent
4f5709a55c
commit
b227d816bc
1 changed files with 10 additions and 0 deletions
|
@ -185,6 +185,7 @@ function StatusPage() {
|
|||
id: s.id,
|
||||
ancestor: true,
|
||||
accountID: s.account.id,
|
||||
repliesCount: s.repliesCount,
|
||||
})),
|
||||
{ id, accountID: heroStatus.account.id },
|
||||
...nestedDescendants.map((s) => ({
|
||||
|
@ -627,6 +628,7 @@ function StatusPage() {
|
|||
descendant,
|
||||
thread,
|
||||
replies,
|
||||
repliesCount,
|
||||
} = status;
|
||||
const isHero = statusID === id;
|
||||
return (
|
||||
|
@ -729,6 +731,14 @@ function StatusPage() {
|
|||
size={thread || ancestor ? 'm' : 's'}
|
||||
enableTranslate
|
||||
/>
|
||||
{ancestor && !!repliesCount && (
|
||||
<div class="replies-link">
|
||||
<Icon icon="comment" />{' '}
|
||||
<span title={repliesCount}>
|
||||
{shortenNumber(repliesCount)}
|
||||
</span>
|
||||
</div>
|
||||
)}{' '}
|
||||
{/* {replies?.length > LIMIT && (
|
||||
<div class="replies-link">
|
||||
<Icon icon="comment" />{' '}
|
||||
|
|
Loading…
Reference in a new issue