Change REST API to return empty data for suspended accounts (#14765)
This commit is contained in:
		
					parent
					
						
							
								e6d67f85e2
							
						
					
				
			
			
				commit
				
					
						e6b272e5c9
					
				
			
		
					 22 changed files with 79 additions and 30 deletions
				
			
		|  | @ -25,7 +25,7 @@ class Api::V1::Accounts::FollowingAccountsController < Api::BaseController | |||
|   end | ||||
| 
 | ||||
|   def hide_results? | ||||
|     (@account.hides_following? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account)) | ||||
|     @account.suspended? || (@account.hides_following? && current_account&.id != @account.id) || (current_account && @account.blocking?(current_account)) | ||||
|   end | ||||
| 
 | ||||
|   def default_accounts | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue