mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
refactor(replies): remove pinned-thread special handling for reply preview
This commit is contained in:
@@ -831,9 +831,8 @@ const PostDesktop = ({
|
||||
const repliesCount = computeOmittedCount({
|
||||
totalReplyCount,
|
||||
visibleCount: BOARD_REPLIES_PREVIEW_VISIBLE_COUNT,
|
||||
pinned,
|
||||
});
|
||||
const linksCount = pinned ? totalLinksCount : totalLinksCount - visiblelinksCount;
|
||||
const linksCount = totalLinksCount - visiblelinksCount;
|
||||
|
||||
const stateString = useStateString(post) || t('downloading_board');
|
||||
const hasFailedState = state === 'failed';
|
||||
@@ -1056,7 +1055,6 @@ const PostDesktop = ({
|
||||
{/* Non-virtualized rendering for board view (preview replies when collapsed, full when expanded) */}
|
||||
{!isHidden &&
|
||||
!showAllReplies &&
|
||||
!(pinned && !isInPostPageView && !showOmittedReplies[cid]) &&
|
||||
!isInPendingPostView &&
|
||||
repliesForRender &&
|
||||
showReplies &&
|
||||
|
||||
Reference in New Issue
Block a user