about summary refs log tree commit diff
path: root/app/javascript/themes/glitch/features/notifications/components/follow.js
diff options
context:
space:
mode:
authorDavid Yip <yipdw@member.fsf.org>2017-11-28 17:34:03 -0600
committerGitHub <noreply@github.com>2017-11-28 17:34:03 -0600
commit84840e8d8c2cb4c1f7848e1148e2531edaf2c3d7 (patch)
tree5cd4327ce6e151d32d1f2d9c68487f0b47842e91 /app/javascript/themes/glitch/features/notifications/components/follow.js
parent3614912be258f66155369ba9b01fa8e7336afbdd (diff)
parent6a48efe16c062b8c82975573400e44d817ab548b (diff)
Merge pull request #232 from glitch-soc/hotkeys-glitch
Implement status hotkeys + spoiler expanding
Diffstat (limited to 'app/javascript/themes/glitch/features/notifications/components/follow.js')
-rw-r--r--app/javascript/themes/glitch/features/notifications/components/follow.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/themes/glitch/features/notifications/components/follow.js b/app/javascript/themes/glitch/features/notifications/components/follow.js
index 8a0f01736..96cfe83e6 100644
--- a/app/javascript/themes/glitch/features/notifications/components/follow.js
+++ b/app/javascript/themes/glitch/features/notifications/components/follow.js
@@ -14,6 +14,7 @@ import NotificationOverlayContainer from '../containers/overlay_container';
 export default class NotificationFollow extends ImmutablePureComponent {
 
   static propTypes = {
+    hidden: PropTypes.bool,
     id: PropTypes.string.isRequired,
     account: ImmutablePropTypes.map.isRequired,
     notification: ImmutablePropTypes.map.isRequired,
@@ -57,7 +58,7 @@ export default class NotificationFollow extends ImmutablePureComponent {
   }
 
   render () {
-    const { account, notification } = this.props;
+    const { account, notification, hidden } = this.props;
 
     //  Links to the display name.
     const displayName = account.get('display_name_html') || account.get('username');
@@ -87,7 +88,7 @@ export default class NotificationFollow extends ImmutablePureComponent {
             />
           </div>
 
-          <AccountContainer id={account.get('id')} withNote={false} />
+          <AccountContainer hidden={hidden} id={account.get('id')} withNote={false} />
           <NotificationOverlayContainer notification={notification} />
         </div>
       </HotKeys>