Fix extraneous margins below CW in absence of mentions (#2936)

pull/2940/head
Claire 2025-01-08 18:24:57 +01:00 committed by GitHub
parent 693074973a
commit dc14695f8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import ImmutablePropTypes from 'react-immutable-proptypes';
import { Permalink } from 'flavours/glitch/components/permalink';
export const MentionsPlaceholder = ({ status }) => {
if (status.get('spoiler_text').length === 0 || !status.get('mentions')) {
if (status.get('spoiler_text').length === 0 || !status.get('mentions') || status.get('mentions').isEmpty()) {
return null;
}