Open video modal on public UI (#7469)
This commit is contained in:
parent
f77b11cd10
commit
d9b2f84c92
6 changed files with 68 additions and 11 deletions
|
@ -84,8 +84,8 @@ export default class Status extends ImmutablePureComponent {
|
|||
return <div className='media-spoiler-video' style={{ height: '110px' }} />;
|
||||
}
|
||||
|
||||
handleOpenVideo = startTime => {
|
||||
this.props.onOpenVideo(this._properStatus().getIn(['media_attachments', 0]), startTime);
|
||||
handleOpenVideo = (media, startTime) => {
|
||||
this.props.onOpenVideo(media, startTime);
|
||||
}
|
||||
|
||||
handleHotkeyReply = e => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue