Change display of quote posts to strip fallback link and preview cards (#34772)
This commit is contained in:
parent
3acd87419c
commit
02ac18da51
4 changed files with 27 additions and 4 deletions
|
@ -227,7 +227,7 @@ export const DetailedStatus: React.FC<{
|
|||
/>
|
||||
);
|
||||
}
|
||||
} else if (status.get('card')) {
|
||||
} else if (status.get('card') && !status.get('quote')) {
|
||||
media = (
|
||||
<Card
|
||||
sensitive={status.get('sensitive')}
|
||||
|
@ -307,7 +307,12 @@ export const DetailedStatus: React.FC<{
|
|||
|
||||
return (
|
||||
<div style={outerStyle}>
|
||||
<div ref={handleRef} className={classNames('detailed-status')}>
|
||||
<div
|
||||
ref={handleRef}
|
||||
className={classNames('detailed-status', {
|
||||
'status--has-quote': !!status.get('quote'),
|
||||
})}
|
||||
>
|
||||
{status.get('visibility') === 'direct' && (
|
||||
<div className='status__prepend'>
|
||||
<div className='status__prepend-icon-wrapper'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue