about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/status.jsx
diff options
context:
space:
mode:
authorChristian Schmidt <github@chsc.dk>2023-02-20 08:11:23 +0100
committerGitHub <noreply@github.com>2023-02-20 08:11:23 +0100
commit62c4aecf8f3cb1e2bf1d0d1611084a3406a7adc0 (patch)
treed3d283be26a5bdb624286d8ac443ac38f57727b7 /app/javascript/mastodon/components/status.jsx
parent2c3c734bcc5e485a59145b78f5c783ca9a462cb7 (diff)
Make larger part of status clickable (#23621)
Diffstat (limited to 'app/javascript/mastodon/components/status.jsx')
-rw-r--r--app/javascript/mastodon/components/status.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/status.jsx b/app/javascript/mastodon/components/status.jsx
index f02910f5a..2e2d96634 100644
--- a/app/javascript/mastodon/components/status.jsx
+++ b/app/javascript/mastodon/components/status.jsx
@@ -160,6 +160,7 @@ class Status extends ImmutablePureComponent {
 
     if (e) {
       e.preventDefault();
+      e.stopPropagation();
     }
 
     this._openProfile(proper);
@@ -510,8 +511,8 @@ class Status extends ImmutablePureComponent {
           {prepend}
 
           <div className={classNames('status', `status-${status.get('visibility')}`, { 'status-reply': !!status.get('in_reply_to_id'), muted: this.props.muted })} data-id={status.get('id')}>
-            <div className='status__info'>
-              <a onClick={this.handleClick} href={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}`} className='status__relative-time' target='_blank' rel='noopener noreferrer'>
+            <div onClick={this.handleClick} className='status__info'>
+              <a href={`/@${status.getIn(['account', 'acct'])}/${status.get('id')}`} className='status__relative-time' target='_blank' rel='noopener noreferrer'>
                 <span className='status__visibility-icon'><Icon id={visibilityIcon.icon} title={visibilityIcon.text} /></span>
                 <RelativeTimestamp timestamp={status.get('created_at')} />{status.get('edited_at') && <abbr title={intl.formatMessage(messages.edited, { date: intl.formatDate(status.get('edited_at'), { hour12: false, year: 'numeric', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }) })}> *</abbr>}
               </a>