Disable Posts link on Account statuses page

This commit is contained in:
Lim Chee Aun 2023-03-12 10:34:58 +08:00
parent 95d919bd5a
commit c6957f6967

View file

@ -227,18 +227,28 @@ function AccountInfo({
</div>
)}
<p class="stats">
<Link
to={instance ? `/${instance}/a/${id}` : `/a/${id}`}
onClick={() => {
hideAllModals();
}}
>
Posts
<br />
<b title={statusesCount}>
{shortenNumber(statusesCount)}
</b>{' '}
</Link>
{standalone ? (
<span>
Posts
<br />
<b title={statusesCount}>
{shortenNumber(statusesCount)}
</b>{' '}
</span>
) : (
<Link
to={instance ? `/${instance}/a/${id}` : `/a/${id}`}
onClick={() => {
hideAllModals();
}}
>
Posts
<br />
<b title={statusesCount}>
{shortenNumber(statusesCount)}
</b>{' '}
</Link>
)}
<span>
Following
<br />