Handle filtered quote posts

This commit is contained in:
Lim Chee Aun 2024-05-16 13:00:23 +08:00
parent d4a0a080b5
commit 9934daeb4d

View file

@ -303,6 +303,7 @@ function Status({
onMouseEnter: debugHover, onMouseEnter: debugHover,
}} }}
showFollowedTags showFollowedTags
quoted={quoted}
/> />
); );
} }
@ -3176,6 +3177,7 @@ function FilteredStatus({
instance, instance,
containerProps = {}, containerProps = {},
showFollowedTags, showFollowedTags,
quoted,
}) { }) {
const snapStates = useSnapshot(states); const snapStates = useSnapshot(states);
const { const {
@ -3220,7 +3222,9 @@ function FilteredStatus({
return ( return (
<div <div
class={ class={
isReblog quoted
? ''
: isReblog
? group ? group
? 'status-group' ? 'status-group'
: 'status-reblog' : 'status-reblog'
@ -3236,7 +3240,11 @@ function FilteredStatus({
}} }}
{...bindLongPressPeek()} {...bindLongPressPeek()}
> >
<article data-state-post-id={ssKey} class="status filtered" tabindex="-1"> <article
data-state-post-id={ssKey}
class={`status filtered ${quoted ? 'status-card' : ''}`}
tabindex="-1"
>
<b <b
class="status-filtered-badge clickable badge-meta" class="status-filtered-badge clickable badge-meta"
title={filterTitleStr} title={filterTitleStr}