[Glitch] Display unfollow button even if account moved
Backport 3987bd18a4bfaee49ea9a3439fc51610aeca6c2c to glitch-soc
This commit is contained in:
		
							parent
							
								
									a59c146bf8
								
							
						
					
					
						commit
						b5948044b3
					
				@ -99,7 +99,7 @@ export default class Account extends ImmutablePureComponent {
 | 
			
		||||
            {hidingNotificationsButton}
 | 
			
		||||
          </Fragment>
 | 
			
		||||
        );
 | 
			
		||||
      } else if (!account.get('moved')) {
 | 
			
		||||
      } else if (!account.get('moved') || following) {
 | 
			
		||||
        buttons = <IconButton icon={following ? 'user-times' : 'user-plus'} title={intl.formatMessage(following ? messages.unfollow : messages.follow)} onClick={this.handleFollow} active={following} />;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@ export default class Header extends ImmutablePureComponent {
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (account.get('moved')) {
 | 
			
		||||
    if (account.get('moved') && !account.getIn(['relationship', 'following'])) {
 | 
			
		||||
      actionBtn = '';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user