From: cwm Date: Tue, 9 Jan 2018 14:50:55 +0000 (-0600) Subject: Hide moved account's follow button in search result (tootsuite pr #5913) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=8a0e4bb9a4007efb2c2966fa1ffa9027a1a6da5d;p=mastodon.git Hide moved account's follow button in search result (tootsuite pr #5913) --- diff --git a/app/javascript/flavours/glitch/components/account.js b/app/javascript/flavours/glitch/components/account.js index bb1979cc7..265ee94f6 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 = ; } }