mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-20 05:44:01 +00:00
Fixes #32 bug with revealing sensitive media
This commit is contained in:
parent
0b371da971
commit
19690d3e33
|
@ -172,10 +172,12 @@ export default class StatusContent extends React.PureComponent {
|
|||
ref={this.setRef}
|
||||
className='status__content status__content--with-action'
|
||||
style={directionStyle}
|
||||
onMouseDown={this.handleMouseDown}
|
||||
onMouseUp={this.handleMouseUp}
|
||||
>
|
||||
<div dangerouslySetInnerHTML={content} />
|
||||
<div
|
||||
onMouseDown={this.handleMouseDown}
|
||||
onMouseUp={this.handleMouseUp}
|
||||
dangerouslySetInnerHTML={content}
|
||||
/>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
@ -185,8 +187,6 @@ export default class StatusContent extends React.PureComponent {
|
|||
ref={this.setRef}
|
||||
className='status__content'
|
||||
style={directionStyle}
|
||||
onMouseDown={this.handleMouseDown}
|
||||
onMouseUp={this.handleMouseUp}
|
||||
>
|
||||
<div dangerouslySetInnerHTML={content} />
|
||||
{children}
|
||||
|
|
Loading…
Reference in a new issue