]> cat aescling's git repositories - mastodon.git/commitdiff
Fix the Open handler for PreviewCard (#15305)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Tue, 8 Dec 2020 11:07:54 +0000 (20:07 +0900)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 11:07:54 +0000 (12:07 +0100)
app/javascript/mastodon/components/status.js

index 18e0e87c837c8d3df0ce3297cc0fcf57f7fd6464..d9e7347f8acf30d7169eae7b0aba81183ac5f86c 100644 (file)
@@ -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}