diff --git a/src/components/status.jsx b/src/components/status.jsx index 981c4211..d57050f2 100644 --- a/src/components/status.jsx +++ b/src/components/status.jsx @@ -94,6 +94,7 @@ function Status({ allowFilters, onMediaClick, quoted, + onStatusLinkClick = () => {}, }) { if (skeleton) { return ( @@ -526,7 +527,10 @@ function Status({
{createdDateText} - + View post by @{username || acct} @@ -944,6 +948,7 @@ function Status({ onClick={(e) => { e.preventDefault(); e.stopPropagation(); + onStatusLinkClick?.(); }} class={`time ${open ? 'is-open' : ''}`} > diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 0ceaf363..09f298ce 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -843,6 +843,24 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { weight, } = status; const isHero = statusID === id; + const StatusParent = useCallback( + (props) => + isThread || thread ? ( + { + resetScrollPosition(statusID); + }} + {...props} + /> + ) : ( +
+ ), + [isThread, thread], + ); return (
  • ) : ( - { - resetScrollPosition(statusID); - }} - > + { + resetScrollPosition(statusID); + }} /> {ancestor && isThread && repliesCount > 1 && ( )} */} - + )} {descendant && replies?.length > 0 && ( {replies.map((r) => (
  • - { resetScrollPosition(r.id); }} - > + > */} +
    )} - +
  • + {/* */} {r.replies?.length && (