about summary refs log tree commit diff
path: root/app/javascript/mastodon/components/account.js
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-08-29 05:23:44 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-28 22:23:44 +0200
commit0827c09c448ea8d61e62534dd3547719e148a4ae (patch)
treecc2b90e924f3500815bcd7dfae702256c01d8b38 /app/javascript/mastodon/components/account.js
parent938cd2875b14db3655a6c9f82f672f4baf7720a3 (diff)
Generalized the infinite scrollable list (#4697)
Diffstat (limited to 'app/javascript/mastodon/components/account.js')
-rw-r--r--app/javascript/mastodon/components/account.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/account.js b/app/javascript/mastodon/components/account.js
index 69cc63d10..6456c12ba 100644
--- a/app/javascript/mastodon/components/account.js
+++ b/app/javascript/mastodon/components/account.js
@@ -26,6 +26,7 @@ export default class Account extends ImmutablePureComponent {
     onBlock: PropTypes.func.isRequired,
     onMute: PropTypes.func.isRequired,
     intl: PropTypes.object.isRequired,
+    hidden: PropTypes.bool,
   };
 
   handleFollow = () => {
@@ -41,12 +42,21 @@ export default class Account extends ImmutablePureComponent {
   }
 
   render () {
-    const { account, me, intl } = this.props;
+    const { account, me, intl, hidden } = this.props;
 
     if (!account) {
       return <div />;
     }
 
+    if (hidden) {
+      return (
+        <div>
+          {account.get('display_name')}
+          {account.get('username')}
+        </div>
+      );
+    }
+
     let buttons;
 
     if (account.get('id') !== me && account.get('relationship', null) !== null) {