Browse Source

Fix reuse of detailed status components (#12792)

Fixes #12770
master
ThibG 4 years ago
committed by Eugen Rochko
parent
commit
12a9813a0c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/javascript/mastodon/features/status/index.js

+ 2
- 0
app/javascript/mastodon/features/status/index.js View File

@ -542,6 +542,7 @@ class Status extends ImmutablePureComponent {
<HotKeys handlers={handlers}>
<div className={classNames('focusable', 'detailed-status__wrapper')} tabIndex='0' aria-label={textForScreenReader(intl, status, false)}>
<DetailedStatus
key={`details-${status.get('id')}`}
status={status}
onOpenVideo={this.handleOpenVideo}
onOpenMedia={this.handleOpenMedia}
@ -552,6 +553,7 @@ class Status extends ImmutablePureComponent {
/>
<ActionBar
key={`action-bar-${status.get('id')}`}
status={status}
onReply={this.handleReplyClick}
onFavourite={this.handleFavouriteClick}

Loading…
Cancel
Save