]> cat aescling's git repositories - mastodon.git/commitdiff
Adds follow action timestamp to notification (#8756)
authorColin Dean <colindean@users.noreply.github.com>
Thu, 27 Sep 2018 15:11:06 +0000 (11:11 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Sep 2018 15:11:06 +0000 (17:11 +0200)
Fixes #8755

app/javascript/mastodon/features/notifications/components/notification.js

index c256661afafd5524b017bd2ba9c8a7e02850f4f6..8776f8be02566198d127ba1a13baf0b96e80504c 100644 (file)
@@ -85,8 +85,9 @@ class Notification extends ImmutablePureComponent {
             <div className='notification__favourite-icon-wrapper'>
               <i className='fas fa-fw fa-user-plus' />
             </div>
-
-            <FormattedMessage id='notification.follow' defaultMessage='{name} followed you' values={{ name: link }} />
+            <span title={notification.get('created_at')}>
+              <FormattedMessage id='notification.follow' defaultMessage='{name} followed you' values={{ name: link }} />
+            </span>
           </div>
 
           <AccountContainer id={account.get('id')} withNote={false} hidden={this.props.hidden} />