about summary refs log tree commit diff
path: root/app/javascript/mastodon/components
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-12-08 20:07:54 +0900
committerGitHub <noreply@github.com>2020-12-08 12:07:54 +0100
commit765626a3a766ce212e73a1a51f6a048cc19ffc63 (patch)
tree2bf4d733385a600b205f1ad499d212e71558d766 /app/javascript/mastodon/components
parent0b437325dc93a1d28202b5ff30eaafc9b4e571b7 (diff)
Fix the Open handler for PreviewCard (#15305)
Diffstat (limited to 'app/javascript/mastodon/components')
-rw-r--r--app/javascript/mastodon/components/status.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/status.js b/app/javascript/mastodon/components/status.js
index 18e0e87c8..d9e7347f8 100644
--- a/app/javascript/mastodon/components/status.js
+++ b/app/javascript/mastodon/components/status.js
@@ -432,7 +432,7 @@ class Status extends ImmutablePureComponent {
     } else if (status.get('spoiler_text').length === 0 && status.get('card')) {
       media = (
         <Card
-          onOpenMedia={this.props.onOpenMedia}
+          onOpenMedia={this.handleOpenMedia}
           card={status.get('card')}
           compact
           cacheWidth={this.props.cacheMediaWidth}