From 93cb162d4af540754c789e8ca125a96a1a727628 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sun, 24 Nov 2019 16:36:04 +0100 Subject: [PATCH] Show acct of target account --- app/javascript/flavours/glitch/features/ui/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js index b582050d84..14d57e4204 100644 --- a/app/javascript/flavours/glitch/features/ui/index.js +++ b/app/javascript/flavours/glitch/features/ui/index.js @@ -72,7 +72,7 @@ const mapStateToProps = state => ({ unreadNotifications: state.getIn(['notifications', 'unread']), showFaviconBadge: state.getIn(['local_settings', 'notifications', 'favicon_badge']), hicolorPrivacyIcons: state.getIn(['local_settings', 'hicolor_privacy_icons']), - moved: state.getIn(['accounts', me, 'moved']), + moved: state.getIn(['accounts', me, 'moved']) && state.getIn(['accounts', state.getIn(['accounts', me, 'moved']), 'acct']), }); const keyMap = { @@ -255,7 +255,7 @@ class UI extends React.Component { dropdownMenuIsOpen: PropTypes.bool, unreadNotifications: PropTypes.number, showFaviconBadge: PropTypes.bool, - moved: PropTypes.bool, + moved: PropTypes.string, }; state = { @@ -586,7 +586,7 @@ class UI extends React.Component {
{moved && (
- +
)} {children}