mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 05:33:43 +01:00
Fix content warning button displaying a link icon when no status card is set
This commit is contained in:
parent
8383222026
commit
89d2859296
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|||
return null;
|
||||
}
|
||||
|
||||
let media = '';
|
||||
let media = null;
|
||||
let mediaIcon = null;
|
||||
let applicationLink = '';
|
||||
let reblogLink = '';
|
||||
|
@ -163,8 +163,8 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|||
);
|
||||
mediaIcon = 'picture-o';
|
||||
}
|
||||
} else {
|
||||
media = <Card onOpenMedia={this.props.onOpenMedia} card={status.get('card', null)} />;
|
||||
} else if (status.get('card')) {
|
||||
media = <Card onOpenMedia={this.props.onOpenMedia} card={status.get('card')} />;
|
||||
mediaIcon = 'link';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue