[Glitch] Display unfollow button even if account moved
Backport 1a90ef9c25 to glitch-soc
			
			
This commit is contained in:
		
							parent
							
								
									f63450c7ec
								
							
						
					
					
						commit
						32ede640af
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		|  | @ -99,7 +99,7 @@ export default class Account extends ImmutablePureComponent { | ||||||
|             {hidingNotificationsButton} |             {hidingNotificationsButton} | ||||||
|           </Fragment> |           </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} />; |         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 = ''; |       actionBtn = ''; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue