From 0d399a4edccfd10626200455fb43b93fea7515d0 Mon Sep 17 00:00:00 2001 From: cwm Date: Tue, 9 Jan 2018 08:50:55 -0600 Subject: [PATCH] Hide moved account's follow button in search result (tootsuite pr #5913) --- app/javascript/flavours/glitch/components/account.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/javascript/flavours/glitch/components/account.js b/app/javascript/flavours/glitch/components/account.js index bb1979cc7b..265ee94f67 100644 --- a/app/javascript/flavours/glitch/components/account.js +++ b/app/javascript/flavours/glitch/components/account.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; @@ -94,12 +94,12 @@ export default class Account extends ImmutablePureComponent { hidingNotificationsButton = ; } buttons = ( -
+ {hidingNotificationsButton} -
+ ); - } else { + } else if (!account.get('moved')) { buttons = ; } }