[Glitch] Fix not being able to open audio modal in web UI

Port a8c471fcc0 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Eugen Rochko authored and Claire committed 2021-05-07 22:47:09 +02:00
1 parent f29f8caccb
commit d973a90bcc
7 files changed
+152 -148

No files matched your search

@@ -378,8 +378,9 @@ class Status extends ImmutablePureComponent {
}
};
handleOpenVideo = (media, options) => {
this.props.onOpenVideo(this.props.status.get('id'), media, options);
handleOpenVideo = (options) => {
const { status } = this.props;
this.props.onOpenVideo(status.get('id'), status.getIn(['media_attachments', 0]), options);
}
handleOpenMedia = (media, index) => {