Add a local setting for inline preview cards

This commit is contained in:
Thibaut Girka
2018-10-30 14:46:48 +01:00
committed by ThibG
parent bdc2338833
commit 7e18e95716
3 changed files with 10 additions and 1 deletions

View File

@ -478,7 +478,7 @@ export default class Status extends ImmutablePureComponent {
if (!status.get('sensitive') && !(status.get('spoiler_text').length > 0) && settings.getIn(['collapsed', 'backgrounds', 'preview_images'])) {
background = attachments.getIn([0, 'preview_url']);
}
} else if (status.get('card')) {
} else if (status.get('card') && settings.get('inline_preview_cards')) {
media = (
<Card
onOpenMedia={this.props.onOpenMedia}