Add a local setting for inline preview cards

This commit is contained in:
Thibaut Girka authored and ThibG committed 2018-10-30 17:51:06 +01:00
1 parent bdc2338833
commit 7e18e95716
3 files changed
+10 -1

No files matched your search

@@ -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}