mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +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,
|
id: s.id,
|
||||||
ancestor: true,
|
ancestor: true,
|
||||||
accountID: s.account.id,
|
accountID: s.account.id,
|
||||||
|
repliesCount: s.repliesCount,
|
||||||
})),
|
})),
|
||||||
{ id, accountID: heroStatus.account.id },
|
{ id, accountID: heroStatus.account.id },
|
||||||
...nestedDescendants.map((s) => ({
|
...nestedDescendants.map((s) => ({
|
||||||
|
@ -627,6 +628,7 @@ function StatusPage() {
|
||||||
descendant,
|
descendant,
|
||||||
thread,
|
thread,
|
||||||
replies,
|
replies,
|
||||||
|
repliesCount,
|
||||||
} = status;
|
} = status;
|
||||||
const isHero = statusID === id;
|
const isHero = statusID === id;
|
||||||
return (
|
return (
|
||||||
|
@ -729,6 +731,14 @@ function StatusPage() {
|
||||||
size={thread || ancestor ? 'm' : 's'}
|
size={thread || ancestor ? 'm' : 's'}
|
||||||
enableTranslate
|
enableTranslate
|
||||||
/>
|
/>
|
||||||
|
{ancestor && !!repliesCount && (
|
||||||
|
<div class="replies-link">
|
||||||
|
<Icon icon="comment" />{' '}
|
||||||
|
<span title={repliesCount}>
|
||||||
|
{shortenNumber(repliesCount)}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
)}{' '}
|
||||||
{/* {replies?.length > LIMIT && (
|
{/* {replies?.length > LIMIT && (
|
||||||
<div class="replies-link">
|
<div class="replies-link">
|
||||||
<Icon icon="comment" />{' '}
|
<Icon icon="comment" />{' '}
|
||||||
|
|
Loading…
Reference in a new issue