mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-29 12:48:57 +03:00
Prevent reply parent hint from being GC-ed
This commit is contained in:
parent
28bb66f185
commit
6581bc2881
1 changed files with 3 additions and 0 deletions
|
@ -2446,6 +2446,8 @@ function StatusCompact({ sKey }) {
|
||||||
if (sensitive || spoilerText) return null;
|
if (sensitive || spoilerText) return null;
|
||||||
if (!content) return null;
|
if (!content) return null;
|
||||||
|
|
||||||
|
const srKey = statusKey(id, instance);
|
||||||
|
|
||||||
const statusPeekText = statusPeek(status);
|
const statusPeekText = statusPeek(status);
|
||||||
return (
|
return (
|
||||||
<article
|
<article
|
||||||
|
@ -2453,6 +2455,7 @@ function StatusCompact({ sKey }) {
|
||||||
visibility === 'direct' ? 'visibility-direct' : ''
|
visibility === 'direct' ? 'visibility-direct' : ''
|
||||||
}`}
|
}`}
|
||||||
tabindex="-1"
|
tabindex="-1"
|
||||||
|
data-state-post-id={srKey}
|
||||||
>
|
>
|
||||||
<Avatar url={avatarStatic || avatar} squircle={bot} />
|
<Avatar url={avatarStatic || avatar} squircle={bot} />
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue