about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-02 11:43:49 +0100
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:21 -0500
commitf119ef489c488b20bae2f4f7f48b64d100a8878e (patch)
tree09ee807d6efc59599ff41e0b3c8d9217d16755cf
parent6a0c65d4611fe15f3bc681632031ea51dc1fe740 (diff)
[Glitch] Adds follow action timestamp to notification
Port 330e320b40e975472e042730f9dfb23083f170e3 to glitch-soc
-rw-r--r--app/javascript/flavours/glitch/features/notifications/components/follow.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/app/javascript/flavours/glitch/features/notifications/components/follow.js b/app/javascript/flavours/glitch/features/notifications/components/follow.js
index ea81d9ab4..be12bb1fb 100644
--- a/app/javascript/flavours/glitch/features/notifications/components/follow.js
+++ b/app/javascript/flavours/glitch/features/notifications/components/follow.js
@@ -81,11 +81,13 @@ export default class NotificationFollow extends ImmutablePureComponent {
               <i className='fa 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 hidden={hidden} id={account.get('id')} withNote={false} />