mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Fix reply parent hint not appearing
Also respect language
This commit is contained in:
parent
3470b9adec
commit
26d445af7d
2 changed files with 16 additions and 4 deletions
|
@ -1273,7 +1273,7 @@ function Status({
|
|||
|
||||
return (
|
||||
<>
|
||||
{showReplyParent && !!(inReplyToId && inReplyToAccount) && (
|
||||
{showReplyParent && !!(inReplyToId && inReplyToAccountId) && (
|
||||
<StatusCompact sKey={sKey} />
|
||||
)}
|
||||
<article
|
||||
|
@ -2441,6 +2441,7 @@ function StatusCompact({ sKey }) {
|
|||
account: { avatar, avatarStatic, bot },
|
||||
visibility,
|
||||
content,
|
||||
language,
|
||||
} = status;
|
||||
if (sensitive || spoilerText) return null;
|
||||
if (!content) return null;
|
||||
|
@ -2454,7 +2455,12 @@ function StatusCompact({ sKey }) {
|
|||
tabindex="-1"
|
||||
>
|
||||
<Avatar url={avatarStatic || avatar} squircle={bot} />
|
||||
<div class="content-compact" title={statusPeekText}>
|
||||
<div
|
||||
class="content-compact"
|
||||
title={statusPeekText}
|
||||
lang={language}
|
||||
dir="auto"
|
||||
>
|
||||
{statusPeekText}
|
||||
</div>
|
||||
</article>
|
||||
|
|
|
@ -433,6 +433,7 @@ function Timeline({
|
|||
key={status.id + status?._pinned + view}
|
||||
view={view}
|
||||
showFollowedTags={showFollowedTags}
|
||||
showReplyParent={showReplyParent}
|
||||
/>
|
||||
))}
|
||||
{showMore &&
|
||||
|
@ -789,7 +790,7 @@ function StatusCarousel({ title, class: className, children }) {
|
|||
|
||||
function TimelineStatusCompact({ status, instance }) {
|
||||
const snapStates = useSnapshot(states);
|
||||
const { id, visibility } = status;
|
||||
const { id, visibility, language } = status;
|
||||
const statusPeekText = statusPeek(status);
|
||||
const sKey = statusKey(id, instance);
|
||||
return (
|
||||
|
@ -811,7 +812,12 @@ function TimelineStatusCompact({ status, instance }) {
|
|||
<Icon icon="thread" size="s" />
|
||||
</div>
|
||||
)}
|
||||
<div class="content-compact" title={statusPeekText}>
|
||||
<div
|
||||
class="content-compact"
|
||||
title={statusPeekText}
|
||||
lang={language}
|
||||
dir="auto"
|
||||
>
|
||||
{statusPeekText}
|
||||
{status.sensitive && status.spoilerText && (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue