about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/status/components/detailed_status.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-04-08 23:06:33 +0200
committerThibaut Girka <thib@sitedethib.com>2018-04-08 23:06:33 +0200
commit0b86ec4e7fb45c1388a692b23f5ffc7d78b5076f (patch)
tree15fc5f0503dcc402a36f93fce7432db8a8db9472 /app/javascript/flavours/glitch/features/status/components/detailed_status.js
parent3ab6a8b8bed37d048909b178693af8411325eb38 (diff)
[Glitch] Allow to open a modal for embedded photo
Port bf7757cbbc7677fb46aee9a0a8d1b8a37ded7bb6 to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/status/components/detailed_status.js')
-rw-r--r--app/javascript/flavours/glitch/features/status/components/detailed_status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/status/components/detailed_status.js b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
index 538aa3d28..ed8094e78 100644
--- a/app/javascript/flavours/glitch/features/status/components/detailed_status.js
+++ b/app/javascript/flavours/glitch/features/status/components/detailed_status.js
@@ -75,7 +75,7 @@ export default class DetailedStatus extends ImmutablePureComponent {
         );
         mediaIcon = 'picture-o';
       }
-    } else media = <CardContainer statusId={status.get('id')} />;
+    } else media = <CardContainer onOpenMedia={this.props.onOpenMedia} statusId={status.get('id')} />;
 
     if (status.get('application')) {
       applicationLink = <span> · <a className='detailed-status__application' href={status.getIn(['application', 'website'])} target='_blank' rel='noopener'>{status.getIn(['application', 'name'])}</a></span>;