[Glitch] Open video modal on public UI

Port d9b2f84c92 to glitch-soc
This commit is contained in:
Thibaut Girka
2018-05-17 17:10:17 +02:00
parent 94db024e4c
commit 07baa1ddb5
6 changed files with 67 additions and 11 deletions

View File

@ -259,8 +259,8 @@ export default class Status extends ImmutablePureComponent {
}
};
handleOpenVideo = startTime => {
this.props.onOpenVideo(this.props.status.getIn(['media_attachments', 0]), startTime);
handleOpenVideo = (media, startTime) => {
this.props.onOpenVideo(media, startTime);
}
handleHotkeyReply = e => {